Confirming -T vs -R equivalence for SNP-only BED files (bcftools 1.16) #2578
gpacinotti
started this conversation in
Polls
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm using bcftools 1.16 to extract SNPs from per-scaffold VCFs (generated with
biscuit pileup) using matching per-scaffold BED files (generated withbiscuit vcf2bed). Command:I initially used
-Rbut it was very slow due to random-access seeks for each of the many small intervals in the BED file; switching to-Tgave a large speedup.I've read the manual's explanation of
-R/-T, including the note that-r/-Rchecks both start and end positions of indels while-t/-Tchecks start positions only. Since my BED files contain only SNPs (single-base intervals), I believe this distinction doesn't apply, so both flags should give identical output, with-Tbeing the better choice here purely for performance reasons (streaming vs. index seeks, given the large number of small intervals).Could you confirm this reasoning is correct, and that
-Tis indeed the recommended flag for this use case?Thanks!
0 votes ·
Beta Was this translation helpful? Give feedback.
All reactions