Newer
Older
input {
String? preCommand
File? toolJar
File bam
File bamIndex
File refFlat
String outputDir
String prefix
String toolCommand = if defined(toolJar)
then "java -Xmx" + memory + "G -jar " +toolJar
else "biopet-basecounter -Xmx" + memory + "G"
mkdir -p ~{outputDir}
~{preCommand}
~{toolCommand} \
-b ~{bam} \
-r ~{refFlat} \
-o ~{outputDir} \
-p ~{prefix}
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
}
output {
File exonAntisense = outputDir + "/" + prefix + ".base.exon.antisense.counts"
File exon = outputDir + "/" + prefix + ".base.exon.counts"
File exonMergeAntisense = outputDir + "/" + prefix + ".base.exon.merge.antisense.counts"
File exonMerge = outputDir + "/" + prefix + ".base.exon.merge.counts"
File exonMergeSense = outputDir + "/" + prefix + ".base.exon.merge.sense.counts"
File exonSense = outputDir + "/" + prefix + ".base.exon.sense.counts"
File geneAntisense = outputDir + "/" + prefix + ".base.gene.antisense.counts"
File gene = outputDir + "/" + prefix + ".base.gene.counts"
File geneExonicAntisense = outputDir + "/" + prefix + ".base.gene.exonic.antisense.counts"
File geneExonic = outputDir + "/" + prefix + ".base.gene.exonic.counts"
File geneExonicSense = outputDir + "/" + prefix + ".base.gene.exonic.sense.counts"
File geneIntronicAntisense = outputDir + "/" + prefix + ".base.gene.intronic.antisense.counts"
File geneIntronic = outputDir + "/" + prefix + ".base.gene.intronic.counts"
File geneIntronicSense = outputDir + "/" + prefix + ".base.gene.intronic.sense.counts"
File geneSense = outputDir + "/" + prefix + ".base.gene.sense.counts"
File intronAntisense = outputDir + "/" + prefix + ".base.intron.antisense.counts"
File intron = outputDir + "/" + prefix + ".base.intron.counts"
File intronMergeAntisense = outputDir + "/" + prefix + ".base.intron.merge.antisense.counts"
File intronMerge = outputDir + "/" + prefix + ".base.intron.merge.counts"
File intronMergeSense = outputDir + "/" + prefix + ".base.intron.merge.sense.counts"
File intronSense = outputDir + "/" + prefix + ".base.intron.sense.counts"
File metaExonsNonStranded = outputDir + "/" + prefix + ".base.metaexons.non_stranded.counts"
File metaExonsStrandedAntisense = outputDir + "/" + prefix + ".base.metaexons.stranded.antisense.counts"
File metaExonsStranded = outputDir + "/" + prefix + ".base.metaexons.stranded.counts"
File metaExonsStrandedSense = outputDir + "/" + prefix + ".base.metaexons.stranded.sense.counts"
File transcriptAntisense = outputDir + "/" + prefix + ".base.transcript.antisense.counts"
File transcript = outputDir + "/" + prefix + ".base.transcript.counts"
File transcriptExonicAntisense = outputDir + "/" + prefix + ".base.transcript.exonic.antisense.counts"
File transcriptExonic = outputDir + "/" + prefix + ".base.transcript.exonic.counts"
File transcriptExonicSense = outputDir + "/" + prefix + ".base.transcript.exonic.sense.counts"
File transcriptIntronicAntisense = outputDir + "/" + prefix + ".base.transcript.intronic.antisense.counts"
File transcriptIntronic = outputDir + "/" + prefix + ".base.transcript.intronic.counts"
File transcriptIntronicSense = outputDir + "/" + prefix + ".base.transcript.intronic.sense.counts"
File transcriptSense = outputDir + "/" + prefix + ".base.transcript.sense.counts"
}
runtime {
input {
File? toolJar
String? preCommand
File inputFile
String outputDir
String adapterOutputFilePath = outputDir + "/adapter.list"
String contamsOutputFilePath = outputDir + "/contaminations.list"
Boolean? skipContams
File? knownContamFile
File? knownAdapterFile
Float? adapterCutoff
Boolean? outputAsFasta
String toolCommand = if defined(toolJar)
then "java -Xmx" + memory + "G -jar " +toolJar
else "biopet-extractadaptersfastqc -Xmx" + memory + "G"
set -e
~{preCommand}
mkdir -p ~{outputDir}
~{toolCommand} \
--inputFile ~{inputFile} \
~{"--adapterOutputFile " + adapterOutputFilePath } \
~{"--contamsOutputFile " + contamsOutputFilePath } \
~{"--knownContamFile " + knownContamFile} \
~{"--knownAdapterFile " + knownAdapterFile} \
~{"--adapterCutoff " + adapterCutoff} \
~{true="--skipContams" false="" skipContams} \
~{true="--outputAsFasta" false="" outputAsFasta}
File adapterOutputFile = adapterOutputFilePath
File contamsOutputFile = contamsOutputFilePath
Array[String] adapterList = read_lines(adapterOutputFile)
Array[String] contamsList = read_lines(contamsOutputFile)
String toolCommand = if defined(toolJar)
then "java -Xmx" + memory + "G -jar " +toolJar
else "biopet-fastqsplitter -Xmx" + memory + "G"
~{preCommand}
mkdir -p $(dirname ~{sep=') $(dirname ' outputPaths})
if [ ~{length(outputPaths)} -gt 1 ]; then
~{toolCommand} \
-I ~{inputFastq} \
-o ~{sep=' -o ' outputPaths}
memory: ceil(memory * memoryMultiplier)
input {
String? preCommand
File ref1
File ref2
File in1
File in2
String out1path
String out2path
File? toolJar
String toolCommand = if defined(toolJar)
then "java -Xmx" + memory + "G -jar " +toolJar
else "biopet-fastqsync -Xmx" + memory + "G"
~{preCommand}
mkdir -p $(dirname ~{out1path}) $(dirname ~{out2path})
~{toolCommand} \
--in1 ~{in1} \
--in2 ~{in2} \
--ref1 ~{ref1} \
--ref2 ~{ref2} \
--out1 ~{out1path} \
--out2 ~{out2path}
input {
File? toolJar
String? preCommand
Array[File]+ inputFiles
String keyFilePath
String? sample
String? library
String? readgroup
String? jsonOutputPath
String? tsvOutputPath
then "java -Xmx" + memory + "G -jar " +toolJar
else "biopet-sampleconfig -Xmx" + memory + "G"
~{preCommand}
mkdir -p . ~{"$(dirname " + jsonOutputPath + ")"} ~{"$(dirname " + tsvOutputPath + ")"}
~{toolCommand} \
-i ~{sep="-i " inputFiles} \
~{"--sample " + sample} \
~{"--library " + library} \
~{"--readgroup " + readgroup} \
~{"--jsonOutput " + jsonOutputPath} \
~{"--tsvOutput " + tsvOutputPath} \
> ~{keyFilePath}
File? jsonOutput = jsonOutputPath
File? tsvOutput = tsvOutputPath
}
task SampleConfigCromwellArrays {
input {
File? toolJar
String? preCommand
Array[File]+ inputFiles
String outputPath
Int memory = 4
Float memoryMultiplier = 2.0
}
String toolCommand = if defined(toolJar)
else "biopet-sampleconfig -Xmx" + memory + "G"
command {
set -e -o pipefail
~{preCommand}
~{toolCommand} CromwellArrays \
-i ~{sep="-i " inputFiles} \
~{"-o " + outputPath}
}
output {
File outputFile = outputPath
}
runtime {
memory: ceil(memory * memoryMultiplier)
}
}
input {
String? preCommand
File refFasta
File refDict
String outputDirPath
File? toolJar
Int? scatterSize
File? regions
String toolCommand = if defined(toolJar)
then "java -Xmx" + memory + "G -jar " +toolJar
else "biopet-scatterregions -Xmx" + memory + "G"
~{preCommand}
mkdir -p ~{outputDirPath}
~{toolCommand} \
-R ~{refFasta} \
-o ~{outputDirPath} \
~{"-s " + scatterSize} \
~{"-L " + regions}
Array[File] scatters = glob(outputDirPath + "/scatter-*.bed")
input {
String? preCommand
File? toolJar
File fastq
String outputFile
then "java -Xmx" + memory + "G -jar " + toolJar
else "biopet-seqstat -Xmx" + memory + "G"
~{preCommand}
mkdir -p $(dirname ~{outputFile})
~{toolCommand} \
--fastq ~{fastq} \
--output ~{outputFile}
input {
String? preCommand
File? toolJar
File? refRefflat
File? gtfFile
File refFasta
File refFastaIndex
File refDict
then "java -Xmx" + memory + "G -jar " + toolJar
else "biopet-validateannotation -Xmx" + memory + "G"
~{"-r " + refRefflat} \
~{"-g " + gtfFile} \
}
output {
File stderr = stderr()
}
input {
String? preCommand
File? toolJar
File fastq1
File? fastq2
then "java -Xmx" + memory + "G -jar " + toolJar
else "biopet-validatefastq -Xmx" + memory + "G"
--fastq1 ~{fastq1} \
~{"--fastq2 " + fastq2}
String? preCommand
File? toolJar
File vcfFile
File refFastaIndex
File refDict
then "java -Xmx" + memory + "G -jar " + toolJar
else "biopet-validatevcf -Xmx" + memory + "G"
}
output {
File stderr = stderr()
}
runtime {
task VcfStats {
input {
File vcfFile
File vcfIndex
File refFasta
File refFastaIndex
File refDict
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
File? intervals
Array[String]+? infoTags
Array[String]+? genotypeTags
Int? sampleToSampleMinDepth
Int? binSize
Int? maxContigsInSingleJob
Boolean writeBinStats = false
Int localThreads = 1
Boolean notWriteContigStats = false
Boolean skipGeneral = false
Boolean skipGenotype = false
Boolean skipSampleDistributions = false
Boolean skipSampleCompare = false
String? sparkMaster
Int? sparkExecutorMemory
Array[String]+? sparkConfigValues
Int memory = 4
Float memoryMultiplier = 2.0
File? toolJar
String? preCommand
}
String toolCommand = if defined(toolJar)
then "java -Xmx" + memory + "G -jar " + toolJar
else "biopet-vcfstats -Xmx" + memory + "G"
command {
set -e -o pipefail
~{preCommand}
~{toolCommand} \
-I ~{vcfFile} \
-R ~{refFasta} \
-t ~{localThreads} \
~{"--intervals " + intervals} \
~{true="--infoTag" false="" defined(infoTags)} ~{sep=" --infoTag " infoTags} \
~{true="--genotypeTag" false="" defined(genotypeTags)} ~{sep=" --genotypeTag "
genotypeTags} \
~{"--sampleToSampleMinDepth " + sampleToSampleMinDepth} \
~{"--binSize " + binSize} \
~{"--maxContigsInSingleJob " + maxContigsInSingleJob} \
~{true="--writeBinStats" false="" writeBinStats} \
~{true="--notWriteContigStats" false="" notWriteContigStats} \
~{true="--skipGeneral" false="" skipGeneral} \
~{true="--skipGenotype" false="" skipGenotype} \
~{true="--skipSampleDistributions" false="" skipSampleDistributions} \
~{true="--skipSampleCompare" false="" skipSampleCompare} \
~{"--sparkMaster " + sparkMaster} \
~{"--sparkExecutorMemory " + sparkExecutorMemory} \
~{true="--sparkConfigValue" false="" defined(sparkConfigValues)} ~{
sep=" --sparkConfigValue" sparkConfigValues}
}
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
File? general = outputDir + "/general.tsv"
File? genotype = outputDir + "/genotype.tsv"
File? sampleDistributionAvailableAggregate = outputDir +
"/sample_distributions/Available.aggregate.tsv"
File? sampleDistributionAvailable = outputDir + "/sample_distributions/Available.tsv"
File? sampleDistributionCalledAggregate = outputDir +
"/sample_distributions/Called.aggregate.tsv"
File? sampleDistributionCalled = outputDir + "/sample_distributions/Called.tsv"
File? sampleDistributionFilteredAggregate = outputDir +
"/sample_distributions/Filtered.aggregate.tsv"
File? sampleDistributionFiltered = outputDir + "/sample_distributions/Filtered.tsv"
File? sampleDistributionHetAggregate = outputDir + "/sample_distributions/Het.aggregate.tsv"
File? sampleDistributionHetNoNRefAggregate = outputDir +
"/sample_distributions/HetNonRef.aggregate.tsv"
File? sampleDistributionHetNonRef = outputDir + "/sample_distributions/HetNonRef.tsv"
File? sampleDistributionHet = outputDir + "/sample_distributions/Het.tsv"
File? sampleDistributionHomAggregate = outputDir + "/sample_distributions/Hom.aggregate.tsv"
File? sampleDistributionHomRefAggregate = outputDir +
"/sample_distributions/HomRef.aggregate.tsv"
File? sampleDistributionHomRef = outputDir + "/sample_distributions/HomRef.tsv"
File? sampleDistributionHom = outputDir + "/sample_distributions/Hom.tsv"
File? sampleDistributionHomVarAggregate = outputDir +
"/sample_distributions/HomVar.aggregate.tsv"
File? sampleDistributionHomVar = outputDir + "/sample_distributions/HomVar.tsv"
File? sampleDistributionMixedAggregate = outputDir +
"/sample_distributions/Mixed.aggregate.tsv"
File? sampleDistributionMixed = outputDir + "/sample_distributions/Mixed.tsv"
File? sampleDistributionNoCallAggregate = outputDir +
"/sample_distributions/NoCall.aggregate.tsv"
File? sampleDistributionNoCall = outputDir + "/sample_distributions/NoCall.tsv"
File? sampleDistributionNonInformativeAggregate = outputDir +
"/sample_distributions/NonInformative.aggregate.tsv"
File? sampleDistributionNonInformative = outputDir +
"/sample_distributions/NonInformative.tsv"
File? sampleDistributionToalAggregate = outputDir +
"/sample_distributions/Total.aggregate.tsv"
File? sampleDistributionTotal = outputDir + "/sample_distributions/Total.tsv"
File? sampleDistributionVariantAggregate = outputDir +
"/sample_distributions/Variant.aggregate.tsv"
File? sampleDistributionVariant = outputDir + "/sample_distributions/Variant.tsv"
File? sampleCompareAlleleAbs = outputDir + "/sample_compare/allele.abs.tsv"
File? sampleCompareAlleleNonRefAbs = outputDir + "/sample_compare/allele.non_ref.abs.tsv"
File? sampleCompareAlleleRefAbs = outputDir + "/sample_compare/allele.ref.abs.tsv"
File? sampleCompareAlleleRel = outputDir + "/sample_compare/allele.rel.tsv"
File? sampleCompareGenotypeAbs = outputDir + "/sample_compare/genotype.abs.tsv"
File? sampleCompareGenotypeNonRefAbs = outputDir +
"/sample_compare/genotype.non_ref.abs.tsv"
File? sampleCompareGenotypeRefAbs = outputDir + "/sample_compare/genotype.ref.abs.tsv"
File? sampleCompareGenotypeRel = outputDir + "/sample_compare/genotype.rel.tsv"