This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to get the sample ID number to print with variant Information

Hello, I am very new to bioinformatics and I am working on analyzing a file. Using code: bcftools query -f '%CHROM\t%POS[\t%GT\t]\n' Regiononly.vcf.gz Prints out the genotypes and one sample is showing heterozygous for the variant of interest. However I cannot figure out the code to print the sample ID for the heterozygous individual.

Thank you in advance for your help. If more context is needed, please let me know.

id vcf heterozygous sample

0 answers

No answers yet.

Log in to answer this question.