You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if I understand you correctly, but say you have an INFO field NS in a record (record.INFO['NS']), you are interested in the definition of NS as presented in the VCF header?
Then, yes, you can do something like this:
>>> reader = vcf.Reader(filename='test.vcf')
>>> reader.infos['NS']
Info(id='NS', num=1, type='Integer', desc='Number of Samples With Data', source=None, version=None)
>>> reader.infos['NS'].num
1
Please reopen this issue if that doesn't solve your problem.
Is there a way to retrieve header info that corresponds to the record attributes in the INFO field?
The text was updated successfully, but these errors were encountered: