Skip to content

Commit

Permalink
Fix bwa tests. Add bowtie2-build to docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Jun 25, 2017
1 parent e2bfd12 commit 2611c0b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ env:
- s=docker_test_bwameth

script:
- "./${s}.sh"
- "./${s}.sh true" # Run again, building reference genome
- "./${s}.sh true"
- "./${s}.sh" # Run again, WITHOUT building reference genome
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ RUN mkdir /opt/bowtie2 && \
cd /opt/bowtie2/bowtie2-2.3.2/ && \
make && \
ln -s /opt/bowtie2/bowtie2-2.3.2/bowtie2 /usr/local/bin/bowtie2 && \
ln -s /opt/bowtie2/bowtie2-2.3.2/bowtie2-build /usr/local/bin/bowtie2-build && \
rm /opt/bowtie2/bowtie2.zip

# Install Bismark
RUN mkdir /opt/Bismark && \
curl -fsSL https://github.com/FelixKrueger/Bismark/archive/0.17.0.zip -o /opt/Bismark/bismark.zip && \
curl -fsSL https://github.com/FelixKrueger/Bismark/archive/0.18.1.zip -o /opt/Bismark/bismark.zip && \
unzip /opt/Bismark/bismark.zip -d /opt/Bismark && \
rm /opt/Bismark/bismark.zip
ENV PATH="/opt/Bismark/Bismark-0.17.0:${PATH}"
ENV PATH="/opt/Bismark/Bismark-0.18.1:${PATH}"

# Install Qualimap
RUN mkdir /opt/Qualimap && \
Expand Down Expand Up @@ -104,4 +105,4 @@ RUN mkdir /opt/MethylDackel && \
rm /opt/MethylDackel/MethylDackel.zip

# Install MultiQC
RUN pip install git+git://github.com/ewels/MultiQC.git
RUN pip install multiqc
4 changes: 2 additions & 2 deletions tests/docker_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ fi

if [ -z $1]
then
buildrefs="--fasta ${data_dir}/references/WholeGenomeFasta/genome.fa"
else
buildrefs="--bismark_index ${data_dir}/references/BismarkIndex/"
else
buildrefs="--fasta ${data_dir}/references/WholeGenomeFasta/genome.fa"
fi

run_name="Test MethylSeq Run: "$(date +%s)
Expand Down
19 changes: 10 additions & 9 deletions tests/docker_test_bwameth.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
#!/usr/bin/env bash

script_path="../bwa-meth.nf"
if [ -z $1]
then
echo "No argument given, going to try to run ../bwa-meth.nf"
else
script_path=$1
fi

data_path="/tmp"
if [ -d "./test_data" ]
then
Expand All @@ -32,7 +24,16 @@ else
echo "Done"
fi

cmd="nextflow run $script_path -resume -profile testing --fasta ${data_dir}/references/WholeGenomeFasta/genome.fa --fasta_index ${data_dir}/references/WholeGenomeFasta/genome.fa.fai --reads \"${data_dir}/*.fastq.gz\""
if [ -z $1]
then
buildrefs="--fasta_index ${data_dir}/references/WholeGenomeFasta/genome.fa.fai --bwa_meth_index results/reference_genome/genome"
else
buildrefs=""
fi

run_name="Test MethylSeq Run: "$(date +%s)

cmd="nextflow run ../bwa-meth.nf -resume -profile testing --fasta ${data_dir}/references/WholeGenomeFasta/genome.fa $buildrefs --reads \"${data_dir}/*.fastq.gz\""
echo "Starting nextflow... Command:"
echo $cmd
echo "-----"
Expand Down

0 comments on commit 2611c0b

Please sign in to comment.