Open ZON-ZONG-MIN opened 8 months ago
I believe you need to access the value from samples
not format
. format
is actually a mapping of the formats from the header.
# access by sample name
rec.samples['hg002']['PS']
# access by sample index
rec.samples[0]['PS']
My vcf file is [ ONT R10.4.1 provided by EPI2ME ]
aws s3 ls --no-sign-request s3://ont-open-data/giab_2023.05/analysis/variant_calling/hg002_hac_60x/hg002.wf_snp.vcf.gz
I tried the following sample code
but I get these outputs
How should I get the correct PS numbers? Thank you!