Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
maxulysse committed Jan 29, 2024
1 parent f4828c0 commit 7d78d9f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
50 changes: 25 additions & 25 deletions subworkflows/local/germlinecnvcaller_cohort.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ workflow GERMLINECNVCALLER_COHORT {
//
// Prepare references
//
SAMTOOLS_FAIDX (ch_fasta, [[:],[]])
SAMTOOLS_FAIDX(ch_fasta, [[:],[]])

PICARD_CREATESEQUENCEDICTIONARY (ch_fasta)
PICARD_CREATESEQUENCEDICTIONARY(ch_fasta)

ch_user_dict
.mix(PICARD_CREATESEQUENCEDICTIONARY.out.reference_dict)
Expand All @@ -37,16 +37,16 @@ workflow GERMLINECNVCALLER_COHORT {
.collect()
.set { ch_fai }

GATK4_PREPROCESSINTERVALS (ch_fasta,
ch_fai,
ch_dict,
[[:],[]], [[:],[]])
GATK4_PREPROCESSINTERVALS(ch_fasta,
ch_fai,
ch_dict,
[[:],[]], [[:],[]])

GATK4_ANNOTATEINTERVALS (GATK4_PREPROCESSINTERVALS.out.interval_list,
ch_fasta,
ch_fai,
ch_dict,
[[:],[]], [[:],[]], [[:],[]], [[:],[]])
GATK4_ANNOTATEINTERVALS(GATK4_PREPROCESSINTERVALS.out.interval_list,
ch_fasta,
ch_fai,
ch_dict,
[[:],[]], [[:],[]], [[:],[]], [[:],[]])

//
// Filter out files that lack indices, and generate them
Expand All @@ -60,11 +60,11 @@ workflow GERMLINECNVCALLER_COHORT {
}
.set { ch_for_mix }

SAMTOOLS_INDEX (ch_for_mix.alignment_without_index)
SAMTOOLS_INDEX(ch_for_mix.alignment_without_index)

SAMTOOLS_INDEX.out.bai
.mix(SAMTOOLS_INDEX.out.crai)
.set { ch_index }
.mix(SAMTOOLS_INDEX.out.crai)
.set { ch_index }

//
// Collect alignment files and their indices
Expand All @@ -78,10 +78,10 @@ workflow GERMLINECNVCALLER_COHORT {
//
// Collect read counts, and generate models
//
GATK4_COLLECTREADCOUNTS (ch_readcounts_in,
ch_fasta,
ch_fai,
ch_dict)
GATK4_COLLECTREADCOUNTS(ch_readcounts_in,
ch_fasta,
ch_fai,
ch_dict)

GATK4_COLLECTREADCOUNTS.out.tsv
.mix(GATK4_COLLECTREADCOUNTS.out.hdf5)
Expand All @@ -90,9 +90,9 @@ workflow GERMLINECNVCALLER_COHORT {
.set { ch_readcounts_out }


GATK4_FILTERINTERVALS (GATK4_PREPROCESSINTERVALS.out.interval_list,
ch_readcounts_out,
GATK4_ANNOTATEINTERVALS.out.annotated_intervals)
GATK4_FILTERINTERVALS(GATK4_PREPROCESSINTERVALS.out.interval_list,
ch_readcounts_out,
GATK4_ANNOTATEINTERVALS.out.annotated_intervals)

GATK4_INTERVALLISTTOOLS(GATK4_FILTERINTERVALS.out.interval_list)
.interval_list
Expand All @@ -105,17 +105,17 @@ workflow GERMLINECNVCALLER_COHORT {
.map{ meta, counts, meta2, il -> [meta, counts, il, []] }
.set {ch_contigploidy_in}

GATK4_DETERMINEGERMLINECONTIGPLOIDY (ch_contigploidy_in,
[[:],[]],
ch_ploidy_priors)
GATK4_DETERMINEGERMLINECONTIGPLOIDY(ch_contigploidy_in,
[[:],[]],
ch_ploidy_priors)

ch_readcounts_out
.combine(ch_intervallist_out)
.combine(GATK4_DETERMINEGERMLINECONTIGPLOIDY.out.calls)
.map{ meta, counts, il, meta2, calls -> [meta + [id:il.baseName], counts, il, calls, []] }
.set {ch_cnvcaller_in}

GATK4_GERMLINECNVCALLER (ch_cnvcaller_in)
GATK4_GERMLINECNVCALLER(ch_cnvcaller_in)

ch_versions = ch_versions.mix(SAMTOOLS_FAIDX.out.versions)
ch_versions = ch_versions.mix(PICARD_CREATESEQUENCEDICTIONARY.out.versions)
Expand Down
8 changes: 4 additions & 4 deletions workflows/createpanelrefs.nf
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ workflow CREATEPANELREFS {
if (params.tools && params.tools.split(',').contains('germlinecnvcaller')) {

GERMLINECNVCALLER_COHORT(ch_dict,
ch_fai,
ch_fasta,
ch_input,
ch_ploidy_priors)
ch_fai,
ch_fasta,
ch_input,
ch_ploidy_priors)

ch_versions = ch_versions.mix(GERMLINECNVCALLER_COHORT.out.versions)
}
Expand Down

0 comments on commit 7d78d9f

Please sign in to comment.