Entering edit mode
2.1 years ago
fastdavid91
•
0
Hi all,
I am need to understand how to extract the chromosome, start position, and end position for each variant in a vcf file. I have the vcf, and bam files really I need the position of the variant.
I thought maybe vcf tools would help, but my results don't make sense. Any help would be greatly appreciated. Thanks very much.
Do we have any
pythonic
way of gettingstart
andend
positions of a variant fromVCF
file?https://pyvcf.readthedocs.io/en/latest/API.html#vcf-model-record
Thank you Pierre.