Skip to content
Snippets Groups Projects
Commit 8b27e8aa authored by Cats's avatar Cats
Browse files

styling and paths

parent fb1a2c68
No related branches found
No related tags found
1 merge request!17Caching related changes
...@@ -114,16 +114,16 @@ task GatherBqsrReports { ...@@ -114,16 +114,16 @@ task GatherBqsrReports {
# Call variants on a single sample with HaplotypeCaller to produce a GVCF # Call variants on a single sample with HaplotypeCaller to produce a GVCF
task HaplotypeCallerGvcf { task HaplotypeCallerGvcf {
String? preCommand String? preCommand
Array[File]+ input_bams Array[File]+ inputBams
Array[File]+ input_bams_index Array[File]+ inputBamsIndex
Array[File]+ interval_list Array[File]+ intervalList
String gvcf_basename String gvcfPath
File ref_dict File refDict
File ref_fasta File refFasta
File ref_fasta_index File refFastaIndex
Float? contamination Float? contamination
Int? compression_level Int? compressionLevel
String gatk_jar String gatkJar
Float? memory Float? memory
Float? memoryMultiplier Float? memoryMultiplier
...@@ -132,20 +132,20 @@ task HaplotypeCallerGvcf { ...@@ -132,20 +132,20 @@ task HaplotypeCallerGvcf {
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ${preCommand}
java ${"-Dsamjdk.compression_level=" + compression_level} \ java ${"-Dsamjdk.compression_level=" + compressionLevel} \
-Xmx${mem}G -jar ${gatk_jar} \ -Xmx${mem}G -jar ${gatkJar} \
HaplotypeCaller \ HaplotypeCaller \
-R ${ref_fasta} \ -R ${refFasta} \
-O ${gvcf_basename}.vcf.gz \ -O ${gvcfPath} \
-I ${sep=" -I " input_bams} \ -I ${sep=" -I " inputBams} \
-L ${sep=' -L ' interval_list} \ -L ${sep=' -L ' intervalList} \
-contamination ${default=0 contamination} \ -contamination ${default=0 contamination} \
-ERC GVCF -ERC GVCF
} }
output { output {
File output_gvcf = "${gvcf_basename}.vcf.gz" File outputGVCF = gvcfPath
File output_gvcf_index = "${gvcf_basename}.vcf.gz.tbi" File outputGVCFindex = gvcfPath + ".tbi"
} }
runtime { runtime {
...@@ -155,22 +155,22 @@ task HaplotypeCallerGvcf { ...@@ -155,22 +155,22 @@ task HaplotypeCallerGvcf {
task GenotypeGVCFs { task GenotypeGVCFs {
String? preCommand String? preCommand
File gvcf_files File gvcfFiles
File gvcf_file_indexes File gvcfFileIndexes
Array[File]+ intervals Array[File]+ intervals
String output_basename String outputPath
String gatk_jar String gatkJar
File ref_fasta File refFasta
File ref_fasta_index File refFastaIndex
File ref_dict File refDict
File dbsnp_vcf File dbsnpVCF
File dbsnp_vcf_index File dbsnpVCFindex
Int? compression_level Int? compressionLevel
Float? memory Float? memory
Float? memoryMultiplier Float? memoryMultiplier
...@@ -179,22 +179,22 @@ task GenotypeGVCFs { ...@@ -179,22 +179,22 @@ task GenotypeGVCFs {
set -e -o pipefail set -e -o pipefail
${preCommand} ${preCommand}
java ${"-Dsamjdk.compression_level=" + compression_level} \ java ${"-Dsamjdk.compression_level=" + compressionLevel} \
-Xmx${mem}G -jar ${gatk_jar} \ -Xmx${mem}G -jar ${gatkJar} \
GenotypeGVCFs \ GenotypeGVCFs \
-R ${ref_fasta} \ -R ${refFasta} \
-O ${output_basename + ".vcf.gz"} \ -O ${outputPath} \
-D ${dbsnp_vcf} \ -D ${dbsnpVCF} \
-G StandardAnnotation \ -G StandardAnnotation \
--only-output-calls-starting-in-intervals \ --only-output-calls-starting-in-intervals \
-new-qual \ -new-qual \
-V ${gvcf_files} \ -V ${gvcfFiles} \
-L ${sep=' -L ' intervals} -L ${sep=' -L ' intervals}
} }
output { output {
File output_vcf = output_basename + ".vcf.gz" File outputVCF = outputPath
File output_vcf_index = output_basename + ".vcf.gz.tbi" File outputVCFindex = outputPath + ".tbi"
} }
runtime{ runtime{
...@@ -204,19 +204,19 @@ task GenotypeGVCFs { ...@@ -204,19 +204,19 @@ task GenotypeGVCFs {
task CombineGVCFs { task CombineGVCFs {
String? preCommand String? preCommand
Array[File]+ gvcf_files Array[File]+ gvcfFiles
Array[File]+ gvcf_file_indexes Array[File]+ gvcfFileIndexes
Array[File]+ intervals Array[File]+ intervals
String output_basename String outputPath
String gatk_jar String gatkJar
File ref_fasta File refFasta
File ref_fasta_index File refFastaIndex
File ref_dict File refDict
Int? compression_level Int? compressionLevel
Float? memory Float? memory
Float? memoryMultiplier Float? memoryMultiplier
...@@ -225,23 +225,23 @@ task CombineGVCFs { ...@@ -225,23 +225,23 @@ task CombineGVCFs {
set -e -o pipefail set -e -o pipefail
${preCommand} ${preCommand}
if [ ${length(gvcf_files)} -gt 1 ]; then if [ ${length(gvcfFiles)} -gt 1 ]; then
java ${"-Dsamjdk.compression_level=" + compression_level} \ java ${"-Dsamjdk.compression_level=" + compressionLevel} \
-Xmx${mem}G -jar ${gatk_jar} \ -Xmx${mem}G -jar ${gatkJar} \
CombineGVCFs \ CombineGVCFs \
-R ${ref_fasta} \ -R ${refFasta} \
-O ${output_basename + ".vcf.gz"} \ -O ${outputPath} \
-V ${sep=' -V ' gvcf_files} \ -V ${sep=' -V ' gvcfFiles} \
-L ${sep=' -L ' intervals} -L ${sep=' -L ' intervals}
else else
ln -sf ${select_first(gvcf_files)} ${output_basename + ".vcf.gz"} ln -sf ${select_first(gvcfFiles)} ${outputPath}
ln -sf ${select_first(gvcf_files)}.tbi ${output_basename + ".vcf.gz.tbi"} ln -sf ${select_first(gvcfFileIndexes)} ${outputPath}.tbi
fi fi
} }
output { output {
File output_gvcf = output_basename + ".vcf.gz" File outputGVCF = outputPath
File output_gvcf_index = output_basename + ".vcf.gz.tbi" File outputGVCFindex = outputPath + ".tbi"
} }
runtime { runtime {
...@@ -252,13 +252,13 @@ task CombineGVCFs { ...@@ -252,13 +252,13 @@ task CombineGVCFs {
task SplitNCigarReads { task SplitNCigarReads {
String? preCommand String? preCommand
File input_bam File inputBam
File input_bam_index File inputBamIndex
File ref_fasta File refFasta
File ref_fasta_index File refFastaIndex
File ref_dict File refDict
String output_bam String outputBam
String gatk_jar String gatkJar
Array[File]+ intervals Array[File]+ intervals
Float? memory Float? memory
...@@ -268,17 +268,17 @@ task SplitNCigarReads { ...@@ -268,17 +268,17 @@ task SplitNCigarReads {
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ${preCommand}
java -Xms${mem}G -jar ${gatk_jar} \ java -Xms${mem}G -jar ${gatkJar} \
SplitNCigarReads \ SplitNCigarReads \
-I ${input_bam} \ -I ${inputBam} \
-R ${ref_fasta} \ -R ${refFasta} \
-O ${output_bam} \ -O ${outputBam} \
-L ${sep=' -L ' intervals} -L ${sep=' -L ' intervals}
} }
output { output {
File bam = output_bam File bam = outputBam
File bam_index = sub(output_bam, "\\.bam$", ".bai") File bam_index = sub(outputBam, "\\.bam$", ".bai")
} }
runtime { runtime {
......
...@@ -120,11 +120,11 @@ task MarkDuplicates { ...@@ -120,11 +120,11 @@ task MarkDuplicates {
# Combine multiple VCFs or GVCFs from scattered HaplotypeCaller runs # Combine multiple VCFs or GVCFs from scattered HaplotypeCaller runs
task MergeVCFs { task MergeVCFs {
String? preCommand String? preCommand
Array[File] input_vcfs Array[File] inputVCFs
Array[File] input_vcfs_indexes Array[File] inputVCFsIndexes
String output_vcf_path String outputVCFpath
Int? compression_level Int? compressionLevel
String picard_jar String picardJar
Float? memory Float? memory
Float? memoryMultiplier Float? memoryMultiplier
...@@ -135,16 +135,16 @@ task MergeVCFs { ...@@ -135,16 +135,16 @@ task MergeVCFs {
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ${preCommand}
java ${"-Dsamjdk.compression_level=" + compression_level} \ java ${"-Dsamjdk.compression_level=" + compressionLevel} \
-Xmx${mem}G -jar ${picard_jar} \ -Xmx${mem}G -jar ${picardJar} \
MergeVcfs \ MergeVcfs \
INPUT=${sep=' INPUT=' input_vcfs} \ INPUT=${sep=' INPUT=' inputVCFs} \
OUTPUT=${output_vcf_path} OUTPUT=${outputVCFpath}
} }
output { output {
File output_vcf = output_vcf_path File outputVCF = outputVCFpath
File output_vcf_index = output_vcf_path + ".tbi" File outputVCFindex = outputVCFpath + ".tbi"
} }
runtime { runtime {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment