Skip to content

Commit

Permalink
Set header line to be tab delimited
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil committed Jul 12, 2023
1 parent 13833c3 commit 13b4060
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cwl/samples_fillout_workflow.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,12 @@ steps:
var args2 = args1.map( (a) => "--bam " + a )
return args2.join(" ") ;
}'
sample_ids="${ return inputs.sample_ids.join("\t"); }"
header_line='${
var headers = ["CHROM","POS","ID","REF","ALT","QUAL","FILTER","INFO","FORMAT"]
var sample_ids = inputs.sample_ids
var header_list = headers.concat(sample_ids)
return header_list.join("\t");
}'
fasta="${ return inputs.ref_fasta.path; }"
vcf="${ return inputs.targets_vcf.path }"
fillout_vcf="fillout.vcf"
Expand All @@ -158,7 +163,7 @@ steps:
##FORMAT=<ID=DPF,Number=1,Type=Integer,Description="Total fragment depth">
##FORMAT=<ID=RDF,Number=1,Type=Float,Description="Fragment depth matching reference (REF) allele">
##FORMAT=<ID=ADF,Number=1,Type=Float,Description="Fragment depth matching alternate (ALT) allele">
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT P-\${sample_ids}
#\${header_line}
EOF
fi
inputs:
Expand Down

0 comments on commit 13b4060

Please sign in to comment.