fuc.pyvcf Attribute Error
2
0
Entering edit mode
3.1 years ago
Emilia • 0

Hello, I try to extract GT information from FORMAT field in my .vcf file using fuc.pyvcf submodule. When I try to run my script:

from fuc import pyvcf

import pandas as pd

vf = pyvcf.VcfFrame.from_file('P1_test.vcf')
vf.df

vf.extract_format('GT')

I've got the error:

    Traceback (most recent call last): File "/home/tomasz/Pulpit/burak/vcf_open.py", line 8, in <module> vf.extract_format('GT') AttributeError: 'VcfFrame' object has no attribute 'extract_format'

Any ideas how to solve it? Thanks a lot!

fuc.pyvcf • 963 views
ADD COMMENT
0
Entering edit mode
3.1 years ago
sbstevenlee ▴ 480

Dear Emilia,

Thank you for your interest in using the fuc package, and sorry for the inconvenience! It appears you are using an older version of fuc. What version of fuc are you using right now? The pyvcf.VcfFrame.extract() method has been renamed to pyvcf.VcfFrame.extract_format() in v0.21.0. fuc is a rapidly evolving tool and it's important for users to use the latest version in order to get the most out of it. Currently, v0.26.0 is the latest version. Please let me know if installing the latest version doesn't solve the problem :)

ADD COMMENT
0
Entering edit mode
3.1 years ago
Emilia • 0

Yes, after installing the latest version everything is working well. Thank you :)

ADD COMMENT

Login before adding your answer.

Traffic: 1621 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6