Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/workflow logic issues #979

Merged
merged 4 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dsl2.nf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,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