-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #968 from Kincekara/bwa
adds bwa 0.7.18
- Loading branch information
Showing
3 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
ARG BWA_VER=0.7.18 | ||
|
||
## Builder ## | ||
FROM ubuntu:jammy as builder | ||
|
||
ARG BWA_VER | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
wget \ | ||
ca-certificates \ | ||
make \ | ||
gcc \ | ||
zlib1g-dev && \ | ||
apt-get autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN wget https://github.com/lh3/bwa/archive/refs/tags/v${BWA_VER}.tar.gz &&\ | ||
tar -xvf v${BWA_VER}.tar.gz &&\ | ||
cd bwa-${BWA_VER} &&\ | ||
make &&\ | ||
mv bwa /usr/local/bin/ | ||
|
||
## App ## | ||
FROM ubuntu:jammy as app | ||
|
||
ARG BWA_VER | ||
|
||
LABEL base.image="ubuntu:jammy" | ||
LABEL dockerfile.version="1" | ||
LABEL software="BWA" | ||
LABEL software.version="${BWA_VER}" | ||
LABEL description="Burrows-Wheeler Alignment Tool" | ||
LABEL website="https://github.com/lh3/bwa" | ||
LABEL license="https://github.com/lh3/bwa/blob/master/COPYING" | ||
LABEL maintainer="Kutluhan Incekara" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
COPY --from=builder /usr/local/bin/bwa /usr/local/bin/ | ||
|
||
ENV LC_ALL=C | ||
|
||
CMD ["bwa"] | ||
|
||
WORKDIR /data | ||
|
||
## Test ## | ||
FROM app as test | ||
|
||
RUN apt-get update && apt-get install -y wget | ||
|
||
RUN wget -q ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR608/003/SRR6082043/SRR6082043_1.fastq.gz -O r1.fq.gz &&\ | ||
wget -q ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR608/003/SRR6082043/SRR6082043_2.fastq.gz -O r2.fq.gz &&\ | ||
wget -q https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/006/945/GCF_000006945.2_ASM694v2/GCF_000006945.2_ASM694v2_genomic.fna.gz &&\ | ||
gunzip -c GCF_000006945.2_ASM694v2_genomic.fna.gz > ref.fa | ||
|
||
RUN bwa index ref.fa &&\ | ||
bwa mem ref.fa r1.fq.gz r2.fq.gz > aln.sam &&\ | ||
head aln.sam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# BWA container | ||
|
||
Main tool: [bwa](https://bio-bwa.sourceforge.net/) | ||
|
||
Code repository: https://github.com/lh3/bwa | ||
|
||
Basic information on how to use this tool: | ||
|
||
- executable: bwa | ||
- description: Burrows-Wheeler Aligner | ||
|
||
Full documentation: https://bio-bwa.sourceforge.net/ | ||
|
||
## Example Usage | ||
|
||
```bash | ||
# Illumina/454/IonTorrent single-end reads longer than ~70bp | ||
bwa mem ref.fa reads.fq > aln.sam | ||
# Illumina single-end reads shorter than ~70bp: | ||
bwa aln ref.fa reads.fq > reads.sai | ||
bwa samse ref.fa reads.sai reads.fq > aln-se.sam | ||
# Illumina/454/IonTorrent paired-end reads longer than ~70bp: | ||
bwa mem ref.fa read1.fq read2.fq > aln-pe.sam | ||
# Illumina paired-end reads shorter than ~70bp: | ||
bwa aln ref.fa read1.fq > read1.sai; bwa aln ref.fa read2.fq > read2.sai | ||
bwa sampe ref.fa read1.sai read2.sai read1.fq read2.fq > aln-pe.sam | ||
# PacBio subreads or Oxford Nanopore reads to a reference genome: | ||
bwa mem -x pacbio ref.fa reads.fq > aln.sam | ||
bwa mem -x ont2d ref.fa reads.fq > aln.sam | ||
``` |