Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

bcftools annotate --mark-sites ignores --min-overlap #1869

Closed
lindenb opened this issue Feb 24, 2023 · 1 comment
Closed

bcftools annotate --mark-sites ignores --min-overlap #1869

lindenb opened this issue Feb 24, 2023 · 1 comment

Comments

@lindenb
Copy link
Contributor

lindenb commented Feb 24, 2023

Hi,

unless I'm wrong --mark-sites in bcftools annotate ignores the parameters --min-overlap.
The Flag is always added event if the overlap isn't large enough.

In my test there are 3572 variants with or without --min-overlap "0.8:0.8"

./bcftools annotate  --mark-sites +IN_DGV --min-overlap "0.8:0.8" -a dgv.bed.gz -h dgv.header.txt -c 'CHROM,POS,END,DGV'  in.bcf  |\
  ./bcftools view -G --no-header | grep IN_DGV -c
3572
./bcftools annotate  --mark-sites +IN_DGV -a dgv.bed.gz -h dgv.header.txt -c 'CHROM,POS,END,DGV'  in.bcf |\
  ./bcftools view -G --no-header | grep IN_DGV -c
3572

but there are only 545 variants overlaping the annotations.

./bcftools annotate  --mark-sites +IN_DGV --min-overlap "0.8:0.8" -a dgv.bed.gz -h dgv.header.txt -c 'CHROM,POS,END,DGV' in.bcf |\
  ./bcftools view -G --no-header | grep -c 'DGV='
545

same command without min-overlap

./bcftools annotate  --mark-sites +IN_DGV  -a dgv.bed.gz -h dgv.header.txt -c 'CHROM,POS,END,DGV' in.bcf |\
  ./bcftools view -G --no-header | grep -c 'DGV='
3572
@pd3 pd3 closed this as completed in fe98a6b Feb 24, 2023
@pd3
Copy link
Member

pd3 commented Feb 24, 2023

Thank you for the bug report, this is now fixed.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants