Skip to content

Commit 72a22df

Browse files
committed
2 parents 166c4a0 + 8cd34fc commit 72a22df

14 files changed

Lines changed: 186 additions & 100 deletions

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ before_install:
1313
# Pull the docker image first so the test doesn't wait for this
1414
- docker pull nfcore/eager
1515
# Fake the tag locally so that the pipeline runs properly
16-
- docker tag nfcore/eager nfcore/eager:2.0.2
16+
- docker tag nfcore/eager nfcore/eager:latest
1717

1818
install:
1919
# Install Nextflow
@@ -37,16 +37,16 @@ script:
3737
# Lint the pipeline code
3838
- nf-core lint ${TRAVIS_BUILD_DIR}
3939
# Run the basic pipeline with the test profile
40-
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,docker --pairedEnd
40+
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,docker --pairedEnd --saveReference
4141
# Run the basic pipeline with single end data (pretending its single end actually)
42-
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,docker --singleEnd
42+
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,docker --singleEnd --bwa_index results/reference_genome/bwa_index/
4343
# Run the same pipeline testing optional step: fastp, complexity
44-
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,docker --pairedEnd --complexity_filter
44+
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,docker --pairedEnd --complexity_filter --bwa_index results/reference_genome/bwa_index/
4545
# Test BAM Trimming
46-
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,docker --pairedEnd --trim_bam
46+
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,docker --pairedEnd --trim_bam --bwa_index results/reference_genome/bwa_index/
4747
# Test running with CircularMapper
4848
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,docker --pairedEnd --circularmapper --circulartarget 'NC_007596.2'
4949
# Test running with BWA Mem
50-
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,docker --pairedEnd --bwamem
50+
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,docker --pairedEnd --bwamem --bwa_index results/reference_genome/bwa_index/
5151
# Test basic pipeline with Conda too
52-
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,conda --pairedEnd
52+
- travis_wait 25 nextflow run ${TRAVIS_BUILD_DIR} -profile test,conda --pairedEnd --bwa_index results/reference_genome/bwa_index/

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## unpublished
88

9+
### `Added`
10+
* [#80](https://github.com/nf-core/eager/pull/80) - BWA Index file handling
11+
* [#77](https://github.com/nf-core/eager/pull/77) - Lots of documentation updates by [@jfy133](https://github.com/jfy133)
12+
13+
### `Fixed`
14+
* [#84](https://github.com/nf-core/eager/pull/85) - Fix for [Samtools index issues](https://github.com/nf-core/eager/issues/84)
915

1016
## [2.0.2] - 2018-11-03
1117

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ FROM nfcore/base
33
LABEL description="Docker image containing all requirements for nf-core/eager pipeline"
44
COPY environment.yml /
55
RUN conda env create -f /environment.yml && conda clean -a
6-
ENV PATH /opt/conda/envs/nf-core-eager-2.0.2/bin:$PATH
6+
ENV PATH /opt/conda/envs/nf-core-eager-2.1.0dev/bin:$PATH

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ do so and everyone is welcome to contribute here!
9797
* *PMDTools* Skoglund, P., Northoff, B. H., Shunkov, M. V., Derevianko, A. P., Pääbo, S., Krause, J., & Jakobsson, M. (2014). Separating endogenous ancient DNA from modern day contamination in a Siberian Neandertal. Proceedings of the National Academy of Sciences of the United States of America, 111(6), 2229–2234. [https://doi.org/10.1073/pnas.1318934111](https://doi.org/10.1073/pnas.1318934111) Download: [https://github.com/pontussk/PMDtools](https://github.com/pontussk/PMDtools)
9898
* *MultiQC* Ewels, P., Magnusson, M., Lundin, S., & Käller, M. (2016). MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics , 32(19), 3047–3048. [https://doi.org/10.1093/bioinformatics/btw354](https://doi.org/10.1093/bioinformatics/btw354) Download: [https://multiqc.info/](https://multiqc.info/)
9999
* *BamUtils* Jun, G., Wing, M. K., Abecasis, G. R., & Kang, H. M. (2015). An efficient and scalable analysis framework for variant extraction and refinement from population-scale DNA sequence data. Genome Research, 25(6), 918–925. [https://doi.org/10.1101/gr.176552.114](https://doi.org/10.1101/gr.176552.114) Download: [https://genome.sph.umich.edu/wiki/BamUtil](https://genome.sph.umich.edu/wiki/BamUtil)
100-
* *FastP* Chen, S., Zhou, Y., Chen, Y., & Gu, J. (2018). fastp: an ultra-fast all-in-one FASTQ preprocessor. Bioinformatics , 34(17), i884–i890. [https://doi.org/10.1093/bioinformatics/bty560](https://doi.org/10.1093/bioinformatics/bty560) Download: [https://github.com/OpenGene/fastp](https://github.com/OpenGene/fastp)
100+
* *FastP* Chen, S., Zhou, Y., Chen, Y., & Gu, J. (2018). fastp: an ultra-fast all-in-one FASTQ preprocessor. Bioinformatics , 34(17), i884–i890. [https://doi.org/10.1093/bioinformatics/bty560](https://doi.org/10.1093/bioinformatics/bty560) Download: [https://github.com/OpenGene/fastp](https://github.com/OpenGene/fastp)

Singularity

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Bootstrap:docker
44
%labels
55
MAINTAINER Alexander Peltzer <alexander.peltzer@qbic.uni-tuebingen.de>
66
DESCRIPTION Container image containing all requirements for the nf-core/eager pipeline
7-
VERSION 2.0.2
7+
VERSION 2.1.0dev
88

99
%environment
10-
PATH=/opt/conda/envs/nf-core-eager-2.0.2/bin:$PATH
10+
PATH=/opt/conda/envs/nf-core-eager-2.1.0dev/bin:$PATH
1111
export PATH
1212

1313
%files

conf/acad-pheonix.config

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* ----------------------------------------------------------------------------
3+
* Nextflow config file for use with Singularity on Phoenix Cluster Adelaide
4+
* ----------------------------------------------------------------------------
5+
* Defines basic usage limits and singularity image id.
6+
*/
7+
8+
singularity {
9+
enabled = true
10+
envWhitelist='SINGULARITY_BINDPATH'
11+
}
12+
13+
process {
14+
beforeScript = 'module load Singularity/2.5.2-GCC-5.4.0-2.26'
15+
executor = 'slurm'
16+
}
17+
18+
params {
19+
max_memory = 128.GB
20+
max_cpus = 32
21+
max_time = 48.h
22+
}

conf/shh.config

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* -------------------------------------------------------------
3+
* Nextflow config file for use with Singularity at SHH Clusters
4+
* -------------------------------------------------------------
5+
* Defines basic usage limits and singularity image id.
6+
*/
7+
8+
singularity {
9+
enabled = true
10+
}
11+
12+
/*
13+
* To be improved by process specific resource requests
14+
* By default, take the medium queue, smaller processes might just go to short (e.g. multiqc or similar things)
15+
*/
16+
17+
process {
18+
executor = 'slurm'
19+
queue = 'medium'
20+
21+
22+
withName:makeFastaIndex {
23+
queue = 'short'
24+
time = 2.h
25+
}
26+
withName:makeSeqDict {
27+
queue = 'short'
28+
time = 2.h
29+
}
30+
}
31+
32+
params {
33+
max_memory = 734.GB
34+
max_cpus = 64
35+
max_time = 48.h
36+
}

docs/configuration/adding_your_own.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ Note that the dockerhub organisation name annoyingly can't have a hyphen, so is
5151
### Singularity image
5252
Many HPC environments are not able to run Docker due to security issues.
5353
[Singularity](http://singularity.lbl.gov/) is a tool designed to run on such HPC systems which is very similar to Docker.
54-
>>>>>>> TEMPLATE
5554

5655
To specify singularity usage in your pipeline config file, add the following:
5756

@@ -81,5 +80,4 @@ To use conda in your own config file, add the following:
8180

8281
```nextflow
8382
process.conda = "$baseDir/environment.yml"
84-
>>>>>>> TEMPLATE
8583
```

docs/configuration/local.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ First, install docker on your system: [Docker Installation Instructions](https:/
1111

1212
Then, simply run the analysis pipeline:
1313
```bash
14-
nextflow run nf-core/eager -profile docker --reads '<path to your reads>'
14+
nextflow run nf-core/eager -profile docker --reads '<path to your reads>' --pairedEnd
1515
```
1616

1717
Nextflow will recognise `nf-core/eager` and download the pipeline from GitHub. The `-profile docker` configuration lists the [nf-core/eager](https://hub.docker.com/r/nfcore/eager/) image that we have created and is hosted at dockerhub, and this is downloaded.
@@ -23,9 +23,13 @@ The public docker images are tagged with the same version numbers as the code, w
2323

2424

2525
## Singularity image
26-
Many HPC environments are not able to run Docker due to security issues. [Singularity](http://singularity.lbl.gov/) is a tool designed to run on such HPC systems which is very similar to Docker. Even better, it can use create images directly from dockerhub.
26+
Many HPC environments are not able to run Docker due to security issues. [Singularity](http://singularity.lbl.gov/) is a tool designed to run on such HPC systems which is very similar to Docker. There is a particular profile that will download the singularity image for you.
2727

28-
To use the singularity image for a single run, use `-with-singularity 'docker://nfcore/eager'`. This will download the docker container from dockerhub and create a singularity image for you dynamically.
28+
```bash
29+
nextflow run nf-core/eager -profile singularity --reads '<path to your reads>' --pairedEnd
30+
```
31+
32+
Additionally, it can use create images directly from dockerhub. To use the singularity image for a single run, use `-with-singularity 'docker://nfcore/eager'`. This will download the docker container from dockerhub and create a singularity image for you dynamically.
2933

3034
If you intend to run the pipeline offline, nextflow will not be able to automatically download the singularity image for you. Instead, you'll have to do this yourself manually first, transfer the image file and then point to that.
3135

@@ -38,5 +42,14 @@ singularity pull --name nf-core-eager.img docker://nfcore/eager
3842
Then transfer this file and run the pipeline with this path:
3943

4044
```bash
41-
nextflow run /path/to/nf-core/eager -with-singularity /path/to/nf-core-eager.img
45+
nextflow run /path/to/nf-core/eager -with-singularity /path/to/nf-core-eager.img --reads --pairedEnd
4246
```
47+
48+
## Conda
49+
50+
You may also use conda (utilising the bioconda repository) to download the pipeline dependencies for you.
51+
52+
```bash
53+
nextflow run nf-core/eager -profile conda --reads '<path to your reads>' --pairedEnd
54+
```
55+

docs/installation.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,19 @@ Be warned of two important points about this default configuration:
6969
* See the [nextflow docs](https://www.nextflow.io/docs/latest/executor.html) for information about running with other hardware backends. Most job scheduler systems are natively supported.
7070
2. Nextflow will expect all software to be installed and available on the `PATH`
7171

72+
The following software is currently required to be installed:
73+
74+
* [FastQC](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/)
75+
* [Picard Tools](https://broadinstitute.github.io/picard/)
76+
* [Samtools](http://www.htslib.org/)
77+
* [Preseq](http://smithlabresearch.org/software/preseq/)
78+
* [MultiQC](https://multiqc.info/)
79+
* [BWA](http://bio-bwa.sourceforge.net/)
80+
* [Qualimap](http://qualimap.bioinfo.cipf.es/)
81+
* [GATK](https://software.broadinstitute.org/gatk/)
82+
* [bamUtil](https://genome.sph.umich.edu/wiki/BamUtil)
83+
* [fastP](https://github.com/OpenGene/fastp)
84+
7285
#### 3.1) Software deps: Docker
7386
First, install docker on your system: [Docker Installation Instructions](https://docs.docker.com/engine/installation/)
7487

0 commit comments

Comments
 (0)