diff --git a/main.nf b/main.nf index 5550fb1d156943fb8cdf46f6ae09a64b347a463a..4b975d002949e63655eab5b051e5c52c10de30a2 100644 --- a/main.nf +++ b/main.nf @@ -75,6 +75,8 @@ def helpMessage() { -name Name for the pipeline run. If not specified, Nextflow will automatically generate a random mnemonic. Step options: + --skip_maps Skip generation of contact maps. Useful for capture-C + --skip_ice Skip ICE normalization --skip_cool Skip generation of cool files --skip_multiQC Skip MultiQC @@ -720,6 +722,9 @@ process build_contact_maps{ tag "$sample - $mres" publishDir "${params.outdir}/hic_results/matrix/raw", mode: 'copy' + when: + !params.skip_maps + input: set val(sample), file(vpairs), val(mres) from all_valid_pairs.combine(map_res) file chrsize from chromosome_size.collect() @@ -742,6 +747,9 @@ process run_ice{ tag "$rmaps" publishDir "${params.outdir}/hic_results/matrix/iced", mode: 'copy' + when: + !params.skip_maps && !params.skip_ice + input: file(rmaps) from raw_maps file "*.biases" diff --git a/nextflow.config b/nextflow.config index 32486aab168ccff7647220cd75a61f72f695fbc5..e80bebe0fabe93b37f783ff04451a50256ffe8c2 100644 --- a/nextflow.config +++ b/nextflow.config @@ -19,6 +19,8 @@ params { readPaths = false chromosome_size = false restriction_fragments = false + skip_maps = false + skip_ice = false skip_cool = false skip_multiqc = false dnase = false