This is a test version of Biostars. For the public version, visit https://www.biostars.org.
vcf.gz file Modified

Hello The filter column in the vcf.gz file is all "." Is there a way to replace "." with "PASS"? Thank you.

chip-seq

1 answer

gunzip -c in.vcf.gz |  awk -F '\t' '/^#/ {print;next;} {OFS="\t";if($7==".") $7="PASS";print}'

Log in to answer this question.