Skip to content

Commit 57ab1c9

Browse files
authored
Merge pull request #109 from jfy133/dev
Fix to PR #108
2 parents b9d3c51 + ef2779e commit 57ab1c9

5 files changed

Lines changed: 23 additions & 15 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ nextflow pull nf-core/eager
5555
4. Set up your job with default parameters
5656

5757
```bash
58-
nextflow run nf-core -profile <docker/singularity/conda> --reads'*_R{1,2}.fastq.gz' --fasta '<REFERENCE.fasta'
58+
nextflow run nf-core -profile <docker/singularity/conda> --reads'*_R{1,2}.fastq.gz' --fasta '<REFERENCE>.fasta'
5959
```
6060

6161
5. See the overview of the run with under `<OUTPUT_DIR>/MultiQC/multiqc_report.html`

conf/multiqc_config.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ report_comment: >
55
report_section_order:
66
nf-core/eager-software-versions:
77
order: -1000
8-
fastqc:
9-
after: 'nf-core/eager-software-versions'
10-
adapterRemoval:
11-
after: 'fastqc'
12-
Samtools:
13-
after: 'adapterRemoval'
14-
dedup:
15-
after: 'Samtools'
16-
qualimap:
17-
after: 'dedup'
18-
preseq:
19-
after: 'qualimap'
8+
top_modules:
9+
- fastqc:
10+
name: 'FastQC (raw)'
11+
path_filters:
12+
- '*_preAR_fastqc.zip'
13+
- fastqc:
14+
name: 'FastQC (trimmed)'
15+
info: 'This section of the report shows FastQC results after adapter trimming.'
16+
target: ''
17+
path_filters:
18+
- '*_postAR_fastqc.zip'
19+

docs/configuration/adding_your_own.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ singularity.enabled = true
7373
process.container = "/path/to/nf-core-eager.simg"
7474
```
7575

76+
By default nextflow will store a singularity image in the working directory of a job. You can alternatively further specify a 'central' singularity cache to keep all singularity contains for a(ll) user(s). This can be
77+
done by either setting a central environmental variable `NXF_SINGULARITY_CACHEDIR` or specifying the location in a nextflow config file with `singularity.cacheDir`.
78+
7679
### Conda
7780
If you're not able to use Docker or Singularity, you can instead use conda to manage the software requirements.
7881
To use conda in your own config file, add the following:

docs/configuration/local.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ Many HPC environments are not able to run Docker due to security issues. [Singul
2828
```bash
2929
nextflow run nf-core/eager -profile singularity --reads '<path to your reads>' --pairedEnd
3030
```
31+
Note that by default nextflow will store the singularity container in the working directory of the nexflow run. To speed up jobs in the future, you can store your singularity containers in a specific cache directory, which can be specified by setting the environmental variable in your `bash_profile`. For example
32+
33+
```
34+
NXF_SINGULARITY_CACHEDIR=/home/<user>/singularity
35+
```
3136

3237
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.
3338

main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,14 +738,14 @@ process samtools_filter {
738738
"""
739739
samtools view -h $bam | tee >(samtools view - -@ ${task.cpus} -f4 -q ${params.bam_mapping_quality_threshold} -o ${prefix}.unmapped.bam) >(samtools view - -@ ${task.cpus} -F4 -q ${params.bam_mapping_quality_threshold} -o ${prefix}.filtered.bam)
740740
samtools index ${prefix}.filtered.bam
741-
samtools fastq -tn ${prefix}.unmapped.bam | pigz -p ${task.cpus} > ${prefix}.unmapped.fastq.gz"
741+
samtools fastq -tn ${prefix}.unmapped.bam | pigz -p ${task.cpus} > ${prefix}.unmapped.fastq.gz
742742
rm ${prefix}.unmapped.bam
743743
"""
744744
} else if("${params.bam_discard_unmapped}" && "${params.bam_unmapped_type}" == "both"){
745745
"""
746746
samtools view -h $bam | tee >(samtools view - -@ ${task.cpus} -f4 -q ${params.bam_mapping_quality_threshold} -o ${prefix}.unmapped.bam) >(samtools view - -@ ${task.cpus} -F4 -q ${params.bam_mapping_quality_threshold} -o ${prefix}.filtered.bam)
747747
samtools index ${prefix}.filtered.bam
748-
samtools fastq -tn ${prefix}.unmapped.bam | pigz -p ${task.cpus} > ${prefix}.unmapped.fastq.gz"
748+
samtools fastq -tn ${prefix}.unmapped.bam | pigz -p ${task.cpus} > ${prefix}.unmapped.fastq.gz
749749
"""
750750
} else { //Only apply quality filtering, default
751751
"""

0 commit comments

Comments
 (0)