Entering edit mode
2.7 years ago
User000
▴
710
Hello,
I have a vcf file and I extract only some columns like FILTER, and GT and DP values.
bcftools query -f '%FILTER[\t%GT\t%DP]\n' {input} > {output}
This gives me an output without a header, is it possible to add a tab delimited header like FILTER GT DP
?
FILTER GT DP
PASS 1/1 89
PASS 0/1 78
thanks a lot, this gives me an error:
I'ts unrelated to your original problem. Looks like a snakemake error. See if awk statements need to be escaped.
at this point I stop helping you.
it says syntax error at END{printf... but I dont know how to solve this since I do not understand what exaactly the code does without any explanations.