Why is my subsampling extremely biased for high quality cells? #785
Answered
by
rcorces
markphillippebworth
asked this question in
Questions / Documentation
-
Beta Was this translation helpful? Give feedback.
Answered by
rcorces
May 29, 2021
Replies: 1 comment 1 reply
-
Maybe its your (mis)usage of for ex.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rcorces
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe its your (mis)usage of
sample
?I believe you are supposed to provide a vector of values to sample from. so it should be
sample(x = c(1:length(cellNames(CD4Test)), size = cellRange[i]*2+22)
Otherwise, with the way you are using it, you randomly sample (without replacement) the numbers from 1 to
cellRange[i]*2+22
for ex.