Skip to content

Commit

Permalink
Merge pull request #979 from mskcc/bugfix/workflow_logic_issues
Browse files Browse the repository at this point in the history
Bugfix/workflow logic issues
  • Loading branch information
gongyixiao authored Mar 16, 2023
2 parents 2a50a7c + 0c9c547 commit 1d215b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dsl2.nf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ WFs = params.workflows instanceof Boolean ? '' : params.workflows

WFs = WFs.split(',').collect{it.trim().toLowerCase()}.unique()

WFs = (!params.mapping && !params.bamMapping && aggregateParamIsFile) ? ['snv','sv','mutsig','germSNV','germSV','lohhla','facets','qc','msisensor'] : WFs
WFs = (!params.mapping && !params.bamMapping && aggregateParamIsFile) ? ['snv','sv','mutsig','germsnv','germsv','lohhla','facets','qc','msisensor'] : WFs

workflow {
//Set flags for when each pipeline is required to run.
Expand Down
18 changes: 9 additions & 9 deletions modules/subworkflow/sampleQC_wf.nf
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ workflow sampleQC_wf
referenceMap = params.referenceMap
targetsMap = params.targetsMap

inputChannel.map{ idSample, target, bam, bai ->
[idSample, target, bam, bai, targetsMap."$target".targetsInterval, targetsMap."$target".baitsInterval]
}.set{ bamsBQSR4HsMetrics }

QcCollectHsMetrics(bamsBQSR4HsMetrics,
Channel.value([referenceMap.genomeFile, referenceMap.genomeIndex, referenceMap.genomeDict]))

if (params.assayType == "exome"){
collectHsMetricsOutput = QcCollectHsMetrics.out.collectHsMetricsOutput
if (params.assayType != "genome"){
inputChannel.map{ idSample, target, bam, bai ->
[idSample, target, bam, bai, targetsMap."$target".targetsInterval, targetsMap."$target".baitsInterval]
}.set{ bamsBQSR4HsMetrics }

QcCollectHsMetrics(bamsBQSR4HsMetrics,
Channel.value([referenceMap.genomeFile, referenceMap.genomeIndex, referenceMap.genomeDict])
)
collectHsMetricsOutput = QcCollectHsMetrics.out.collectHsMetricsOutput
} else {
inputChannel
.map{ idSample, target, bam, bai -> [idSample, ""]}
Expand Down

0 comments on commit 1d215b4

Please sign in to comment.