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

Error in if (var(data.matrix[i, cond2[[j]]]) == 0) { : missing value where TRUE/FALSE needed #24

Open
widsquid opened this issue Nov 12, 2021 · 3 comments

Comments

@widsquid
Copy link

Hello, thanks for the great package. I successfully went through the demo but am having some trouble with my data.

batchQC(counts, batch = batch, condition = cond, interactive = TRUE)
Error in if (var(data.matrix[i, cond2[[j]]]) == 0) { :
missing value where TRUE/FALSE needed

One clue is that my many of my conditions have only one replicate. Does this only work if there are multiple reps per condition (for all conditions)?
Thanks so much.

@mani2012
Copy link
Owner

mani2012 commented Nov 12, 2021 via email

@widsquid
Copy link
Author

Ahh yes of course, thanks so much for the reply. Is there any way around this? For example, if I am trying to normalize for batch effect across ~600 RNA-seq samples that were collected from a series of 8 experiments (batches) where each condition is present only once with the exception of 8 (pos and neg ctrl) conditions which were replicated in each batch. Is there any way to use the information from the 8 samples that appear across all batches to extrapolate a batch correction to the entire set of conditions? Thanks again.
W

@mani2012
Copy link
Owner

mani2012 commented Nov 15, 2021 via email

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

2 participants