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
By screening though the code of the read_vcf() function of Fred2.IO.FIleReader I noticed the following:
l194: v_list = record.ALT with record an item of vl being a Record object from pyvcf package
This, if I am not mistaken, will return a list of alternate allele of pyvcf specific type (in my case vcf.model._Substitution).
l218 elif record.is_indel: l219 if len(v_list)%3 == 0:
In the previous condition, determining if the variant will lead to a frameshift, the modulo is done on the list and not on the allele itself, so it will always return 1 if there is only one variant identified at the given loci and not the actual length of the allele itself isn't it?
The text was updated successfully, but these errors were encountered:
@b-schubert Haven't had much time dedicated to it. There is a sloppy fix which is ignoring all but the first ALT,
v_list=next(iter(record.ALTor []), None)
Probab. fine for many cases, but if there are multiple ALT of different len., this should produce independent variant objects.
Haven't had time to integrate a test. I can add a collaborative branch on https://github.com/FRED-2/Fred2/ directly, so we can work together if you'd like or you take over.
By screening though the code of the read_vcf() function of Fred2.IO.FIleReader I noticed the following:
l194: v_list = record.ALT with record an item of vl being a Record object from pyvcf package
This, if I am not mistaken, will return a list of alternate allele of pyvcf specific type (in my case vcf.model._Substitution).
l218 elif record.is_indel:
l219 if len(v_list)%3 == 0:
In the previous condition, determining if the variant will lead to a frameshift, the modulo is done on the list and not on the allele itself, so it will always return 1 if there is only one variant identified at the given loci and not the actual length of the allele itself isn't it?
The text was updated successfully, but these errors were encountered: