Skip to content

Commit

Permalink
Merge pull request #31 from UMCUGenetics/develop
Browse files Browse the repository at this point in the history
v1.3.0
  • Loading branch information
rernst authored Apr 22, 2021
2 parents 607e121 + 91574ad commit e834db8
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 12 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# DxNextflowWES
# DxNextflowWES [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4551799.svg)](https://doi.org/10.5281/zenodo.4551799)

Genome Diagnostics Nextflow WES workflow

#### Get Nextflow Modules
Expand Down
8 changes: 4 additions & 4 deletions WES.config
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ process {
cpus = 2
memory = '20G'
time = '2h'

publishDir = [
[path: "$params.outdir/exomedepth/UMCU", mode: 'copy', pattern: 'UMCU*.vcf'],
[path: "$params.outdir/exomedepth/HC", mode: 'copy', pattern: 'HC*.vcf'],
Expand Down Expand Up @@ -232,7 +232,7 @@ process {
}
}

withLabel: MultiQC_1_8 {
withLabel: MultiQC_1_10 {
cpus = 2
memory = '1G'
time = '5m'
Expand Down Expand Up @@ -270,7 +270,7 @@ process {
memory = '5G'
time = '1h'
}

withLabel: SavePedFile {
cpus = 2
memory = '1G'
Expand All @@ -280,7 +280,7 @@ process {
path = "$params.outdir/QC/Kinship"
mode = 'copy'
}
}
}

withLabel: VersionLog {
cpus = 2
Expand Down
8 changes: 5 additions & 3 deletions WES.nf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ include CollectMultipleMetrics as PICARD_CollectMultipleMetrics from './Nextflow
include EstimateLibraryComplexity as PICARD_EstimateLibraryComplexity from './NextflowModules/Picard/2.22.0/EstimateLibraryComplexity.nf' params(optional:"OPTICAL_DUPLICATE_PIXEL_DISTANCE=2500")
include CollectHsMetrics as PICARD_CollectHsMetrics from './NextflowModules/Picard/2.22.0/CollectHsMetrics.nf' params(genome:"$params.genome", bait:"$params.dxtracks_path/$params.picard_bait", target:"$params.dxtracks_path/$params.picard_target", optional: "METRIC_ACCUMULATION_LEVEL=null METRIC_ACCUMULATION_LEVEL=SAMPLE")
include Flagstat as Sambamba_Flagstat from './NextflowModules/Sambamba/0.7.0/Flagstat.nf'
include MultiQC from './NextflowModules/MultiQC/1.8/MultiQC.nf' params(optional:"--config $baseDir/assets/multiqc_config.yaml")
include MultiQC from './NextflowModules/MultiQC/1.10/MultiQC.nf' params(optional:"--config $baseDir/assets/multiqc_config.yaml")

def fastq_files = extractFastqPairFromDir(params.fastq_path)
def analysis_id = params.outdir.split('/')[-1]
Expand Down Expand Up @@ -148,7 +148,7 @@ process ExonCov {
script:
"""
source ${params.exoncov_path}/venv/bin/activate
python ${params.exoncov_path}/ExonCov.py import_bam --threads ${task.cpus} --overwrite --exon_bed ${params.dxtracks_path}/${params.exoncov_bed} ${analysis_id} ${bam_file}
python ${params.exoncov_path}/ExonCov.py import_bam --threads ${task.cpus} --overwrite --exon_bed ${params.dxtracks_path}/${params.exoncov_bed} ${analysis_id} WES ${bam_file}
"""
}

Expand All @@ -174,7 +174,7 @@ process ExomeDepth {
script:
"""
source ${params.exomedepth_path}/venv/bin/activate
python ${params.exomedepth_path}/run_ExomeDepth.py callcnv ./ ${bam_file} ${analysis_id} ${sample_id}
python ${params.exomedepth_path}/run_ExomeDepth.py callcnv ./ ${bam_file} ${analysis_id} ${sample_id}
"""
}

Expand Down Expand Up @@ -281,6 +281,7 @@ process SavePedFile {
tag {"SavePedFile ${analysis_id}"}
label 'SavePedFile'
shell = ['/bin/bash', '-euo', 'pipefail']
cache = false //Disable cache to force a new ped file copy when restarting the workflow.

output:
path("*.ped")
Expand All @@ -296,6 +297,7 @@ process VersionLog {
tag {"VersionLog ${analysis_id}"}
label 'VersionLog'
shell = ['/bin/bash', '-eo', 'pipefail']
cache = false //Disable cache to force a new version log when restarting the workflow.

output:
path('repository_version.log')
Expand Down
55 changes: 52 additions & 3 deletions assets/multiqc_config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
extra_fn_clean_exts:
- type: regex
pattern: '_\w*_S\d+_L\d{3}_R\d_\d{3}'
- '.LibraryComplexity'

top_modules:
- 'fastqc'
- 'picard'
- 'fastqc'


picard_config:
general_stats_target_coverage:
Expand All @@ -16,6 +15,56 @@ picard_config:
- 40
- 50
- 100
HsMetrics_table_cols:
- AT_DROPOUT
- BAIT_DESIGN_EFFICIENCY
- BAIT_TERRITORY
- FOLD_80_BASE_PENALTY
- FOLD_ENRICHMENT
- GC_DROPOUT
- HET_SNP_Q
- HET_SNP_SENSITIVITY
- MAX_TARGET_COVERAGE
- MEAN_BAIT_COVERAGE
- MEAN_TARGET_COVERAGE
- MEDIAN_TARGET_COVERAGE
- NEAR_BAIT_BASES
- OFF_BAIT_BASES
- ON_BAIT_BASES
- ON_BAIT_VS_SELECTED
- ON_TARGET_BASES
- PCT_SELECTED_BASES
- PCT_USABLE_BASES_ON_BAIT
- PCT_USABLE_BASES_ON_TARGET
- PF_BASES_ALIGNED
- PF_READS
- PF_UNIQUE_READS
- PF_UQ_BASES_ALIGNED
- PF_UQ_READS_ALIGNED
- TARGET_TERRITORY
- TOTAL_READS
- ZERO_CVG_TARGETS_PCT
HsMetrics_table_cols_hidden:
- BAIT_DESIGN_EFFICIENCY
- BAIT_TERRITORY
- FOLD_ENRICHMENT
- HET_SNP_Q
- HET_SNP_SENSITIVITY
- MAX_TARGET_COVERAGE
- MEDIAN_TARGET_COVERAGE
- NEAR_BAIT_BASES
- OFF_BAIT_BASES
- ON_BAIT_BASES
- ON_BAIT_VS_SELECTED
- ON_TARGET_BASES
- PF_BASES_ALIGNED
- PF_READS
- PF_UNIQUE_READS
- PF_UQ_BASES_ALIGNED
- PF_UQ_READS_ALIGNED
- TARGET_TERRITORY
- ZERO_CVG_TARGETS_PCT


table_columns_visible:
FastQC:
Expand Down

0 comments on commit e834db8

Please sign in to comment.