Entering edit mode
                    3.7 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
pythonicway of gettingstartandendpositions of a variant fromVCFfile?https://pyvcf.readthedocs.io/en/latest/API.html#vcf-model-record
Thank you Pierre.