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 quantile.default(med_cor, p = 0.25)--missing values and NaNs not allowed... #21

Open
DanSchnell opened this issue Jun 10, 2021 · 2 comments

Comments

@DanSchnell
Copy link

Hi,

I installed batchQC from BIoconductor (today) and ran 2 of the examples--worked very well.

I'm trying with my own data, and got this error (before GUI activated):
Quitting from lines 178-179 (batchqc_report.Rmd)
Error in quantile.default(med_cor, p = 0.25) :
missing values and NaN's not allowed if 'na.rm' is FALSE

No NAs or NaNs in the expression data, batch or condition objects...
condition & batch vectors are type character.
Expression data has 189 samples & ~ 16K features (features z-scored)

table(condition,batch,useNA='always')
batch
condition 2014 2016 2017 2018 2020
25minus 5 1 7 9 6 0
26_31 0 4 8 4 1 0
32_37 6 1 17 54 22 0
38plus 5 1 10 19 9 0
0 0 0 0 0 0

Any thoughts on getting past this error?

Thanks much!

@mani2012
Copy link
Owner

mani2012 commented Jun 11, 2021 via email

@DanSchnell
Copy link
Author

Thanks for getting back to me.

I seem to have resolved the issue by adding a a positive constant (100) to each entry of the expression matrix--suspecting that the code was not expecting negative numbers or all feature means==0.

Best,
Dan

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