-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unneccsary warning during liftover of each variant? #25
Comments
You need both the b37 (-s) and the b38 (-f) references as input, or BCFtools/liftover will not be able to handle some variants properly. For SNP this might not be too important (though some will be lost because of this) but it is still highly recommended to provide both options. I could add a fix to make sure the warning is not displayed too many times |
But I am using both options (-s -f) .
There warning is generated in the code below in liftover.c. What is this code trying to do? What are maximally extended Alleles?
|
Can you show me some examples of a variants that are giving you this warning? |
When runing a liftover+ from 37 to 38, a warning is displayed for each variant (N=17697744/). If I ignore the warnings and let it continue, the liftover runs to completion and creates a b38 vcf. The command line is pointing to 2 references with -s and -f so the warning is not expected. The liftover does seem to be swapping alleles and rejecting variants. Any ideas on how to eliminate this warning?
Warning: as option --src-fasta-ref is missing it is impossible to infer which allele is the reference allele at position chr22:40552657
Warning: as option --src-fasta-ref is missing it is impossible to infer which allele is the reference allele at position chr22:40554777
Warning: as option --src-fasta-ref is missing it is impossible to infer which allele is the reference allele at position chr22:40559560
Warning: as option --src-fasta-ref is missing it is impossible to infer which allele is the reference allele at position chr22:40568384
Warning: as option --src-fasta-ref is missing it is impossible to infer which allele is the reference allele at position chr22:40611472
Lines total/swapped/reference added/rejected: 17697744/10897/8803/2421
Merging 9 temporary files
Cleaning
Done
The text was updated successfully, but these errors were encountered: