Open JonBarenboim opened 7 years ago
Hi @JonBarenboim,
Thanks to @sampoll, this repo is back in sync with Bioconductor. For https://github.com/rafalab/bumphunter/pull/17 I did some changes to matchGenes()
for other reasons and I looked into this issue too to see if I could address it as well but I couldn't. Basically, if you provide a working example I think that @sampoll will be able to go through it. If your working example is small enough, it could be added as a unit test to the package.
You could be right about i <- map[ind][j]
but it's hard to double check without having access to dmrs <- read.csv(path/to/file)
(or a dummy file).
Best, Leo
matchGenes selects the index of the matched gene in the subject as so:
The last line (first line of the for loop) should, if I'm not mistaken, be
i <- map[j]
since j is already the correct index of the mapThe current code causes an error if
nearest
fails to map some regions and map contains NAs: