Skip to content

Commit

Permalink
disable virus analysis in shallow mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DavyCats committed Mar 17, 2023
1 parent db67088 commit 10c4046
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions WGSinCancerDiagnostics.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -549,31 +549,32 @@ workflow WGSinCancerDiagnostics {
somaticMinPuritySpread = if shallow then 0.1 else noneFloat
}

# Viral analysis
if (! shallow) {

call gridss.Virusbreakend as virusbreakend {
input:
bam = tumorMarkdup.outputBam,
bamIndex = tumorMarkdup.outputBamIndex,
referenceFasta = referenceFasta,
referenceFastaDict = referenceFastaDict,
referenceFastaFai = referenceFastaFai,
referenceImg = referenceImg,
virusbreakendDB = virusbreakendDB
}
# Viral analysis
call hmftools.VirusInterpreter as virusInterpreter {
input:
sampleId = tumorName,
purplePurityTsv = purple.purplePurityTsv,
prupleQcFile = purple.purpleQc,
tumorSampleWgsMetricsFile = tumorCollectMetrics.metrics,
virusBreakendTsv = virusbreakend.summary,
taxonomyDbTsv = taxonomyDbTsv,
virusReportingDbTsv = virusReportingDbTsv
}
call gridss.Virusbreakend as virusbreakend {
input:
bam = tumorMarkdup.outputBam,
bamIndex = tumorMarkdup.outputBamIndex,
referenceFasta = referenceFasta,
referenceFastaDict = referenceFastaDict,
referenceFastaFai = referenceFastaFai,
referenceImg = referenceImg,
virusbreakendDB = virusbreakendDB
}

call hmftools.VirusInterpreter as virusInterpreter {
input:
sampleId = tumorName,
purplePurityTsv = purple.purplePurityTsv,
prupleQcFile = purple.purpleQc,
tumorSampleWgsMetricsFile = tumorCollectMetrics.metrics,
virusBreakendTsv = virusbreakend.summary,
taxonomyDbTsv = taxonomyDbTsv,
virusReportingDbTsv = virusReportingDbTsv
}

if (! shallow) {
call hmftools.Linx as linx {
input:
sampleName = tumorName,
Expand Down Expand Up @@ -830,9 +831,9 @@ workflow WGSinCancerDiagnostics {
File? cupFeaturesPng = cupGenerateReport.featuresPng
File? cupReportPdf = cupGenerateReport.reportPdf

File virusbreakendVcf = virusbreakend.vcf
File virusbreakendSummary = virusbreakend.summary
File virusAnnotatedTsv = virusInterpreter.virusAnnotatedTsv
File? virusbreakendVcf = virusbreakend.vcf
File? virusbreakendSummary = virusbreakend.summary
File? virusAnnotatedTsv = virusInterpreter.virusAnnotatedTsv

File? orangeJson = orange.orangeJson
File? orangePdf = orange.orangePdf
Expand Down

0 comments on commit 10c4046

Please sign in to comment.