.testMarkerSC() failing when mean1 and/or mean2 is NA during call to getMarkerFeatures() #1319
Unanswered
wuv21
asked this question in
Questions / Documentation
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Been running into an issue similar to #562 and #483 with the same error output, but I have been running ArchR v1.0.2 (commit 48dccf) which was the solution to both those questions. As such, I believed that the error was related to something else.
By debugging through the
getMarkerFeatures()
call (see below for my function call):I noticed that one of the rows in
pairwiseDF
(see source below) containedNA
values for both mean1 and mean2 (small section of data frame shown below). The row "f156" is the only row with this issue. All other rows were ok in the rest ofpairwiseDF
.ArchR/R/MarkerFeatures.R
Lines 422 to 426 in 48dccf3
Since
mean1
andmean2
were NA,idxfilter
contained a vector of both boolean values and a NA that was associated with row "f156". I think the fix below would solve this issue:Thanks!
Edit: updated my fix; didn't realize Github changed a piece of code into a link.
Edit2: updated fix again.
Beta Was this translation helpful? Give feedback.
All reactions