Merged
Conversation
tilschaef
reviewed
May 22, 2020
| shell = ['/bin/bash', '-euo', 'pipefail'] | ||
| input: | ||
| tuple sample_id, rg_id, file(fastq: "*") | ||
| tuple (sample_id, rg_id, path(fastq)) |
tilschaef
reviewed
May 22, 2020
|
|
||
| output: | ||
| tuple sample_id, rg_id, file("${rg_id}_sorted.bam"),file("${rg_id}_sorted.bai") | ||
| tuple (sample_id, rg_id, path("${rg_id}_sorted.bam"),path("${rg_id}_sorted.bai"), emit: mapped_bams) |
tilschaef
reviewed
May 22, 2020
FastQC/0.11.5/FastQC.nf
Outdated
|
|
||
| input: | ||
| tuple sample_id, rg_id, file(fastq: "*") | ||
| tuple (sample_id, rg_id, path(fastq) ) |
tilschaef
reviewed
May 22, 2020
|
|
||
| shell = ['/bin/bash', '-euo', 'pipefail'] | ||
| input: | ||
| tuple sample_id, file(bam), file(bai),file(recal_table), file(interval_file) |
tilschaef
reviewed
May 22, 2020
| tuple (sample_id, path("${sample_id}.${int_tag}.recal.table"), emit: recalibration_tables) | ||
|
|
||
| script: | ||
| known = params.genome_known_sites ? '--known-sites ' + params.genome_known_sites.join(' --known-sites ') : '' |
tilschaef
reviewed
May 22, 2020
GATK/4.1.3.0/CombineGVCFs.nf
Outdated
| tuple (run_id, interval, path(gvcf_chunks), path(gvcf_chunk_idxs), path(interval_file)) | ||
| output: | ||
| tuple run_id, interval, file("${run_id}.${interval}.g.vcf"), file("${run_id}.${interval}.g.vcf.idx"),file(interval_file) | ||
| tuple (run_id, interval, path("${run_id}.${interval}.g.vcf"), path("${run_id}.${interval}.g.vcf.idx"),path(interval_file), emit: combined_gvcfs) |
tilschaef
reviewed
May 22, 2020
GATK/4.1.3.0/HaplotypeCaller.nf
Outdated
| tuple (sample_id, int_tag ,path("${sample_id}.${int_tag}${ext}"), path("${sample_id}.${int_tag}${ext}.idx"), path(interval_file), emit: htcaller_vcfs) | ||
|
|
||
| script: | ||
| int_tag = interval_file.toRealPath().toString().split("/")[-2] |
tilschaef
reviewed
May 22, 2020
GATK/4.1.3.0/SamToFastq.nf
Outdated
| // publishDir params.out_dir, mode: 'copy' | ||
| input: | ||
| tuple sample_id, flowcell, machine, run_nr,file(bam) | ||
| tuple (sample_id, flowcell, machine, run_nr,path(bam)) |
tilschaef
reviewed
May 22, 2020
GATK/4.1.3.0/VariantAnnotator.nf
Outdated
| tuple (run_id, path("${vcf.baseName}_${db_name}.vcf"), path("${vcf.baseName}_${db_name}.vcf.idx"), emit: annotated_vcfs) | ||
|
|
||
| script: | ||
| db_file = file(params.genome_variant_annotator_db).getBaseName() |
tilschaef
reviewed
May 22, 2020
GATK/4.1.3.0/VariantFiltration.nf
Outdated
| tuple (run_id, interval, type, path("${run_id}.${interval}.${type}.filtered_variants.vcf"), path("${run_id}.${interval}.${type}.filtered_variants.vcf.idx"), emit: filtered_vcfs) | ||
|
|
||
| script: | ||
| if (type == 'SNP'){ |
tilschaef
reviewed
May 22, 2020
|
|
||
| shell = ['/bin/bash', '-euo', 'pipefail'] | ||
| input: | ||
|
|
tilschaef
reviewed
May 22, 2020
| script: | ||
|
|
||
| """ | ||
| java -Xmx${task.memory.toGiga()-4}g -jar /bin/fgbio-1.1.0.jar --tmp-dir \$PWD CallMolecularConsensusReads \ |
tilschaef
reviewed
May 22, 2020
fgbio/1.1.0/FilterConsensusReads.nf
Outdated
| @@ -17,6 +18,6 @@ process FilterConsensusReads { | |||
| --input $bam \ | |||
tilschaef
reviewed
May 22, 2020
fgbio/1.1.0/SortBam.nf
Outdated
| script: | ||
|
|
||
| """ | ||
| java -Xmx${task.memory.toGiga()-4}g -jar /bin/fgbio-1.1.0.jar --tmp-dir \$PWD SortBam \ |
tilschaef
reviewed
May 22, 2020
| shell = ['/bin/bash', '-euo', 'pipefail'] | ||
|
|
||
| input: | ||
| tuple sample_id, flowcell, machine, run_nr, file(bam) |
tilschaef
reviewed
May 22, 2020
snpEff/4.3t/SnpSiftAnnotate.nf
Outdated
| tuple (run_id, path("${vcf.baseName}_${db_name}.vcf"), path("${vcf.baseName}_${db_name}.vcf.idx"), emit: snpsift_annoted_vcfs) | ||
|
|
||
| script: | ||
| db_file = file(params.genome_snpsift_annotate_db).getBaseName() |
tilschaef
reviewed
May 22, 2020
| script: | ||
|
|
||
| """ | ||
| set -o pipefail |
tilschaef
suggested changes
May 22, 2020
Contributor
tilschaef
left a comment
There was a problem hiding this comment.
- Indent all sections by 4 spaces (input, output, script).
- Check spaces after commas for output tuples.
- Leave space between sections.
tilschaef
approved these changes
May 22, 2020
Contributor
tilschaef
left a comment
There was a problem hiding this comment.
- Check indentations. Sometimes they vary between 3 and 4. Looking good so far.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Made all the necessary refactoring changes. Tested in both the NF-IAP and IDT_SingleUMI_Pipeline development workflows.