Skip to content

Commit 056c552

Browse files
authored
Merge pull request #116 from apeltzer/dev
2.0.4dev
2 parents 383e447 + 3b45af1 commit 056c552

7 files changed

Lines changed: 74 additions & 61 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
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:dev
1515
# Fake the tag locally so that the pipeline runs properly
16-
- docker tag nfcore/eager:dev nfcore/eager:2.0.3
16+
- docker tag nfcore/eager:dev nfcore/eager:latest
1717

1818
install:
1919
# Install Nextflow

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.3/bin:$PATH
6+
ENV PATH /opt/conda/envs/nf-core-eager-2.0.4dev/bin:$PATH

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.3
7+
VERSION 2.0.4dev
88

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

1313
%files

bin/scrape_software_versions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
'GATK': ['v_gatk.txt', r"Version:([\d\.]+)"],
1717
'bamUtil' : ['v_bamutil.txt', r"Version: ([\d\.]+)"],
1818
'fastP': ['v_fastp.txt', r"([\d\.]+)"],
19+
'DamageProfiler' : ['v_damageprofiler.txt', r"version\": \"([\d\.]+)"],
1920
}
2021
results = OrderedDict()
2122
results['nf-core/eager'] = '<span style="color:#999999;\">N/A</span>'
@@ -30,6 +31,7 @@
3031
results['GATK'] = '<span style="color:#999999;\">N/A</span>'
3132
results['bamUtil'] = '<span style="color:#999999;\">N/A</span>'
3233
results['fastP'] = '<span style="color:#999999;\">N/A</span>'
34+
results['DamageProfiler'] = '<span style="color:#999999;\">N/A</span>'
3335

3436
# Search each file using its regex
3537
for k, v in regexes.items():

environment.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: nf-core-eager-2.0.3
1+
name: nf-core-eager-2.0.4dev
22
channels:
33
- defaults
44
- bioconda
@@ -9,12 +9,12 @@ dependencies:
99
- bioconda::adapterremoval=2.2.2
1010
- bioconda::adapterremovalfixprefix=0.0.4
1111
- bioconda::bwa=0.7.17
12-
- bioconda::picard=2.18.15
12+
- bioconda::picard=2.18.21
1313
- bioconda::samtools=1.9
1414
- bioconda::dedup=0.12.3
1515
- bioconda::angsd=0.923
1616
- bioconda::circularmapper=1.93.4
17-
- bioconda::gatk4=4.0.11.0
17+
- bioconda::gatk4=4.0.12.0
1818
- bioconda::qualimap=2.2.2b
1919
- bioconda::vcf2genome=0.91
2020
- bioconda::damageprofiler=0.4.4
@@ -25,6 +25,6 @@ dependencies:
2525
- conda-forge::pigz=2.3.4
2626
- bioconda::sequencetools=1.2.2
2727
- bioconda::preseq=2.0.3
28-
- bioconda::fastp=0.19.4
28+
- bioconda::fastp=0.19.5
2929
- bioconda::bamutil=1.0.14
3030
#Missing Schmutzi,snpAD

main.nf

Lines changed: 62 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -372,35 +372,6 @@ ${summary.collect { k,v -> " <dt>$k</dt><dd><samp>${v ?: '<span style
372372
}
373373

374374

375-
/*
376-
* Parse software version numbers
377-
*/
378-
process get_software_versions {
379-
380-
output:
381-
file 'software_versions_mqc.yaml' into software_versions_yaml
382-
383-
script:
384-
"""
385-
echo $workflow.manifest.version &> v_pipeline.txt
386-
echo $workflow.nextflow.version &> v_nextflow.txt
387-
fastqc --version &> v_fastqc.txt 2>&1 || true
388-
multiqc --version &> v_multiqc.txt 2>&1 || true
389-
bwa &> v_bwa.txt 2>&1 || true
390-
samtools --version &> v_samtools.txt 2>&1 || true
391-
AdapterRemoval -version &> v_adapterremoval.txt 2>&1 || true
392-
picard MarkDuplicates --version &> v_markduplicates.txt 2>&1 || true
393-
dedup -v &> v_dedup.txt 2>&1 || true
394-
preseq &> v_preseq.txt 2>&1 || true
395-
gatk BaseRecalibrator --version 2>&1 | grep Version: > v_gatk.txt 2>&1 || true
396-
vcf2genome &> v_vcf2genome.txt 2>&1 || true
397-
fastp --version &> v_fastp.txt 2>&1 || true
398-
bam --version &> v_bamutil.txt 2>&1 || true
399-
qualimap --version &> v_qualimap.txt 2>&1 || true
400-
401-
scrape_software_versions.py &> software_versions_mqc.yaml
402-
"""
403-
}
404375

405376
/*
406377
* Create BWA indices if they are not present
@@ -615,7 +586,7 @@ process bwa {
615586

616587
output:
617588
file "*.sorted.bam" into ch_mapped_reads_idxstats,ch_mapped_reads_filter,ch_mapped_reads_preseq, ch_mapped_reads_damageprofiler
618-
file "*.bai"
589+
file "*.bai" into ch_bam_index_for_damageprofiler
619590

620591

621592
script:
@@ -868,9 +839,12 @@ process damageprofiler {
868839
input:
869840
file bam from ch_mapped_reads_damageprofiler.mix(ch_mapped_reads_damageprofiler_cm,ch_bwamem_mapped_reads_damageprofiler)
870841
file fasta from ch_fasta_for_damageprofiler
842+
file bai from ch_bam_index_for_damageprofiler
843+
871844

872845
output:
873-
file "*.json" into ch_damageprofiler_results
846+
file "*"
847+
file "*/*.json" into ch_damageprofiler_results, ch_damageprofiler_for_software_versions
874848

875849
script:
876850
"""
@@ -1029,6 +1003,63 @@ Downstream VCF tools:
10291003

10301004

10311005

1006+
1007+
1008+
1009+
/*
1010+
* STEP 3 - Output Description HTML
1011+
*/
1012+
process output_documentation {
1013+
publishDir "${params.outdir}/Documentation", mode: 'copy'
1014+
1015+
input:
1016+
file output_docs from ch_output_docs
1017+
1018+
output:
1019+
file "results_description.html"
1020+
1021+
script:
1022+
"""
1023+
markdown_to_html.r $output_docs results_description.html
1024+
"""
1025+
}
1026+
1027+
1028+
/*
1029+
* Parse software version numbers
1030+
*/
1031+
process get_software_versions {
1032+
1033+
input:
1034+
file json from ch_damageprofiler_for_software_versions
1035+
1036+
output:
1037+
file 'software_versions_mqc.yaml' into software_versions_yaml
1038+
1039+
script:
1040+
"""
1041+
echo $workflow.manifest.version &> v_pipeline.txt
1042+
echo $workflow.nextflow.version &> v_nextflow.txt
1043+
fastqc --version &> v_fastqc.txt 2>&1 || true
1044+
multiqc --version &> v_multiqc.txt 2>&1 || true
1045+
bwa &> v_bwa.txt 2>&1 || true
1046+
samtools --version &> v_samtools.txt 2>&1 || true
1047+
AdapterRemoval -version &> v_adapterremoval.txt 2>&1 || true
1048+
picard MarkDuplicates --version &> v_markduplicates.txt 2>&1 || true
1049+
dedup -v &> v_dedup.txt 2>&1 || true
1050+
preseq &> v_preseq.txt 2>&1 || true
1051+
gatk BaseRecalibrator --version 2>&1 | grep Version: > v_gatk.txt 2>&1 || true
1052+
vcf2genome &> v_vcf2genome.txt 2>&1 || true
1053+
fastp --version &> v_fastp.txt 2>&1 || true
1054+
bam --version &> v_bamutil.txt 2>&1 || true
1055+
qualimap --version &> v_qualimap.txt 2>&1 || true
1056+
cat $json &> v_damageprofiler.txt 2>&1 || true
1057+
1058+
scrape_software_versions.py &> software_versions_mqc.yaml
1059+
"""
1060+
}
1061+
1062+
10321063
/*
10331064
* STEP 2 - MultiQC
10341065
*/
@@ -1065,26 +1096,6 @@ process multiqc {
10651096

10661097

10671098

1068-
/*
1069-
* STEP 3 - Output Description HTML
1070-
*/
1071-
process output_documentation {
1072-
publishDir "${params.outdir}/Documentation", mode: 'copy'
1073-
1074-
input:
1075-
file output_docs from ch_output_docs
1076-
1077-
output:
1078-
file "results_description.html"
1079-
1080-
script:
1081-
"""
1082-
markdown_to_html.r $output_docs results_description.html
1083-
"""
1084-
}
1085-
1086-
1087-
10881099

10891100
/*
10901101
* Completion e-mail notification

nextflow.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// Global default params, used in configs
1212
params {
13-
container = 'nfcore/eager:2.0.3'
13+
container = 'nfcore/eager:latest'
1414

1515
//Pipeline options
1616
aligner = 'bwa'
@@ -107,7 +107,7 @@ manifest {
107107
name = 'nf-core/eager'
108108
author = 'Alexander Peltzer, Stephen Clayton, James A Fellows-Yates'
109109
homePage = 'https://github.com/nf-core/eager'
110-
version = '2.0.3'
110+
version = '2.0.4dev'
111111
description = 'A fully reproducible and modern ancient DNA pipeline in Nextflow and with cloud support.'
112112
mainScript = 'main.nf'
113113
nextflowVersion = '>=0.32.0'

0 commit comments

Comments
 (0)