-
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
Liftover drop-tags finds no matching tags #6
Comments
The correct syntax should be |
Thanks for the indication, unfortunately with that syntax I still get the error from above, as if it doesn't recognize that the flag was even set. Run command : Error :
|
Try again using the development version from here and see if fixes the issue |
If the site is multi-allelic (2 alternate alleles), wouldn't there be a
corresponding two AF values. Does running bcftools norm -m -any eliminate
the error when running liftover?
…On Wed, Mar 27, 2024 at 4:44 AM Giulio Genovese ***@***.***> wrote:
Try again using the development version from here
<http://software.broadinstitute.org/software/score> and see if fixes the
issue
—
Reply to this email directly, view it on GitHub
<#6 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAO6WDIN2MRCVEUTD66T6NTY2KBFZAVCNFSM6AAAAABFJGDDXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRSGIZDEOBVGE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
John J. Farrell, Ph.D.
Biomedical Genetics-Evans 218
Boston University Medical School
72 East Concord Street
Boston, MA
ph: 617-358-3562 (New Number)
|
Yes, if the site has two alternate alleles then INFO/AF should have two values but the problem for @meyerkm is likely a site with one alternate allele and two values from the provided explanation. A site with two alternate alleles and two INFO/AF values will work just as intended with BCFtools/liftover while BCFtools/norm will also throw an error when trying to split a multi-allelic site where the Number=A INFO field has an incorrect number of values |
Correct @freeseek , yes I have one alternate allele but two values in the INFO/AF field. I have an AF value from two samples. I was hoping this But I can of course test the develop version you posted above, as having the |
The develop version you have listed above does work for those SWAP cases with the Same run command, as above, but with the development version of liftover: Output:
|
Run command:
bcftools +liftover -Oz -o testvcf_output.vcf.gz testvcf_input.vcf.gz -- -s source_fasta.fa -f reference.fa -c chainfile.chain.gz --reject testvcf.rejected.vcf.gz
Error #1:
Which arrises in the case of needing to swap alleles. All files do have two values for the INFO/AF field , i.e.
AF=0.5,0.3
Attempted fix:
bcftools +liftover -Oz -o testvcf_output.vcf.gz testvcf_input.vcf.gz -- -s source_fasta.fa -f reference.fa -c chainfile.chain.gz --reject testvcf.rejected.vcf.gz --drop-tags [INFO/AF]
Error#2:
No matching tag [INFO/AF]
As a check, generally querying that tag in the VCF does work :
bcftools query -f '%INFO/AF' testvcf_input.vcf.gz
Maybe there is some trick to identifying the
drop-tags
? I have tried various inputs/string combinations for thedrop-tags
option without any luck.The text was updated successfully, but these errors were encountered: