Skip to content
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

Clarify Counting of Query-Spanning Reads in Documentation #6

Open
DarioS opened this issue Jul 19, 2019 · 0 comments
Open

Clarify Counting of Query-Spanning Reads in Documentation #6

DarioS opened this issue Jul 19, 2019 · 0 comments

Comments

@DarioS
Copy link

DarioS commented Jul 19, 2019

This example produces a count of 1 which I expected it to, but others might expect a count of zero, because the read spans the query coordinates and none of its matching bases fall within the query. I suppose that the query is typically much bigger (e.g. transcript) than the subject (e.g. read) unlike the example below (e.g. short variant).

GA <- GAlignments(seqnames=Rle("chr1"), pos=1L, cigar="50M10D50M", strand=Rle(factor('+', levels = c('+', '-', '*'))))
countOverlaps(GRanges("chr1", IRanges(51, 60)), GA)

Is there somewhere in the vignette that could provide a clarifying explanation in time for the next version?

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

No branches or pull requests

1 participant