-
Notifications
You must be signed in to change notification settings - Fork 114
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 message when I am using estimateDispersions() function. #20
Comments
we have not see this error before. yes. please attach the CDS file in your response here. We will be happy to take a look over it. Thanks |
github do not support Rdata file format. So I sent the file to xqiu@uw.edu . |
Thanks for your email. I have looked at your data. The 34th cell (column C34) has NaN values in your npX matrix (so the pXX cds too). This causes the line of script After removing this cell, you can run estimateSizeFactors and estimateDispersions without error pXX_valid <- pXX[, -34] Also, please notice that estimateDispersion works better when you pool all the genes in your single-cell sample. In your example, you only have a few hundred genes. |
Oh, got it. Thank you so much! |
Hi @Xiaojieqiu I have the same problem but with the
I can't upload my matrix count because is .mtx format, but if you need it I'll send you by email. Thanks in advance! |
I have the same issue. There are no NA or NaN values in my expression matrix, yet I got the error: > MyCellDataSet <- estimateDispersions(MyCellDataSet)
Error in intI(i, n = x@Dim[1], dn[[1]], give.dn = FALSE) :
invalid character indexing
In addition: Warning message:
Deprecated, use tibble::rownames_to_column() instead. Solution
Replacing NA-s with 0, and removing 0-only cells helped. rpc_matrix <- relative2abs(HSMM)
NA_count =sum(is.na(rpc_matrix))
rpc_matrix <- na.replace(rpc_matrix, 0.)
OnlyZeros = (colSums(rpc_matrix)==0)
paste(sum(OnlyZeros), "cells have zero reads in total, and there were", NA_count, "NA values before replacement to NA -> 0")
Valid = which(!OnlyZeros)
rpc_matrix = rpc_matrix[ , Valid ]; dim(rpc_matrix)
# you need to subset phenotype data too!
PS: Additionally, the vignette code uses |
Sorry I am working with URD package, when I am trying to plot markers on clusters I always get this error
Please somebody help me with that Thanks a lot |
Hello, I am using the Monocle R package to analyze single-cell data, but when I was using the estimateDispersion() function, I meet the following error: Error in log (ifelse (y==0, 1, y/mu)): (converted from warning to) NaNs generated“ |
Thank you for developing nice tools for analyzing scRNA-seq data. I have used monocle 1 with fun. Now I reinstalled monocle to try census count and visualize data using monocle.
However, I am getting errors that I previously didn't had.
Here I attach error message from estimateDispersions() function, and my sessionInfo().
locale:
[1] C
attached base packages:
[1] splines stats4 parallel stats graphics grDevices utils
[8] datasets methods base
other attached packages:
[1] monocle_2.2.0 DDRTree_0.1.4 irlba_2.1.2
[4] VGAM_1.0-3 ggplot2_2.2.1 Biobase_2.34.0
[7] BiocGenerics_0.20.0 Matrix_1.2-7.1
loaded via a namespace (and not attached):
[1] Rcpp_0.12.9 compiler_3.3.2 RColorBrewer_1.1-2
[4] plyr_1.8.4 tools_3.3.2 tibble_1.2
[7] gtable_0.2.0 lattice_0.20-34 igraph_1.0.1
[10] DBI_0.5-1 HSMMSingleCell_0.108.0 fastICA_1.2-0
[13] dplyr_0.5.0 stringr_1.1.0 cluster_2.0.5
[16] combinat_0.0-8 grid_3.3.2 R6_2.2.0
[19] qlcMatrix_0.9.5 pheatmap_1.0.8 limma_3.30.8
[22] reshape2_1.4.2 magrittr_1.5 scales_0.4.1
[25] matrixStats_0.51.0 assertthat_0.1 colorspace_1.3-2
[28] stringi_1.1.2 lazyeval_0.2.0 munsell_0.4.3
[31] slam_0.1-40
I am not sure what I've done wrong. I can send "Xerr.RData" file if needed.
Thank you so much!
Sincerely,
ilyoup
The text was updated successfully, but these errors were encountered: