Entering edit mode
4.9 years ago
ja4123
▴
30
When I try to do simply like this:
import vcf
vcf_reader = vcf.Reader(filename="in.vcf.gz")
there is an error:
AttributeError: partially initialized module 'vcf' has no attribute 'Reader' (most likely due to a circular import)
But vcf module has that attribute .. Kindly help.
also it sounds like your installation of
pyvcf
is messed up. I would consider trying the version inconda
; https://anaconda.org/bioconda/pyvcfI always read it by pandas (after removing the heads).
personally, I just use GATK
VariantsToTable
to convert it to a .tsv first. Its much easier to parse this way. Unless you wanted something from the header? Another option might to be convert to another tabular format such as .maf