Comments (10)
You're going to have to be more specific. Provide some code to reproduce the error. Also, this question doesn't go here, but on the simpleSingleCell repository (https://github.com/MarioniLab/simpleSingleCell).
from scran.
Here are the code. I will put the issue on the right place next time. :)
sc4 <- SingleCellExperiment(list(counts=as.matrix(ucb2)),
colData=DataFrame(Donor=name4))
#Quality control and normalization
set.seed(1000)
clusters <- quickCluster(sc4, method="igraph", min.mean=0.1)
table(clusters)
sc4 <- computeSumFactors(sc4, min.mean=0.1, clusters=clusters)
summary(sizeFactors(sc4))
sc4 <- normalize(sc4)
vg_seurat <- read.table(file = "*****.txt")
cor_vg <- Reduce(intersect, list(rownames(sc1), rownames(sc2), rownames(sc3), rownames(sc4),vg_seurat$x))
rescaled <- multiBatchNorm(sc1[cor_vg,], sc2[cor_vg,], sc3[cor_vg,], sc4[cor_vg,])
rescaled.sc1 <- rescaled[[1]]
rescaled.sc2 <- rescaled[[2]]
rescaled.sc3 <- rescaled[[3]]
rescaled.sc4 <- rescaled[[4]]
set.seed(100)
original <- list(
GSEsc1=logcounts(rescaled.sc1)[cor_vg,],
GSEsc2=logcounts(rescaled.sc2)[cor_vg,],
GSEsc3=logcounts(rescaled.sc3)[cor_vg,],
GSEsc4=logcounts(rescaled.sc4)[cor_vg,]
)
mnn.out <- do.call(fastMNN, c(original, list(k=50, d=50, approximate=TRUE, auto.order=TRUE)))
Thanks!
from scran.
I'm afraid that your latest post doesn't help; I can hardly reproduce the error when one of the file names is "*****.txt"
. See https://stackoverflow.com/help/mcve for the expected level of debugging information. The actual error message would also help.
from scran.
I am sorry for this stupid mistake. The real code is
#input variable genes which are found according to Seurat package
vg_seurat <- read.table(file = "vargene.txt")
from scran.
Your are missing the point here. I need a bit of code that I can run on my computer in order to get the same error that you did. Again, see the link to the StackOverflow page that I posted above. You should also describe the error message in more detail than you have currently provided (i.e., none).
from scran.
Hi, I met exactly the same error today when running fastMNN. Do you find a solution? Thanks!
from scran.
I don't have a solution because I can't reproduce the problem on my computer. I can't even try to reproduce it, because I don't have the data. If I had to guess, there are NA
s somewhere in your input data. If you want to help to fix this problem, please provide an RDS file of the input data (anonymized as necessary) and the arguments with which you used to call fastMNN
.
from scran.
from scran.
Thanks @gxg2002cn. As I suspected, you have NaN
s in your matrix, corresponding to the spike-ins genes (presumably because you have no counts for the spike-ins). After removing these rows, the function works:
library(scran)
load("fastMNN_error.RData")
set.seed(1000)
not.erccs <- !grepl("ERCC", rownames(original[[1]]))
mnn.out <- do.call(fastMNN, c(original, list(k=20, d=50, approximate=TRUE,
subset.row=not.erccs)))
The output looks good, there seems to be decent mixing between batches on a t-SNE plot.
from scran.
from scran.
Related Issues (20)
- Different list for findmarker function HOT 1
- scran normalize HOT 1
- Depreciated scran functions and commands. Any updated tutorial?
- Error normalizing Anndata
- Old versions disappeared from bioconductor? HOT 3
- cant load scran HOT 6
- Error in FUN(x, table, nomatch = nomatch, incomparables = incomparables) : 'match' requires vector arguments HOT 2
- DEG results only contain downregulated gene HOT 2
- inter-cluster rescaling factors are not strictly positive HOT 2
- findMarkers produces unexpectedly different results with passing different values to direction HOT 11
- Installation of package ‘scran’ had non-zero exit status HOT 2
- findmarkers summary.logFC values HOT 1
- `pseudoBulkDGE()` intermediates dropped if `row.data` supplied HOT 1
- Installation is failing HOT 6
- error using scaledColRanks HOT 3
- Add lfc= option back to scoreMarkers
- Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘assay’ for signature ‘"dgRMatrix", "character"’ HOT 1
- BiocParallel errror (invalid length of row names) in combineMarkers() with full.stats = TRUE HOT 2
- Cyclone not finishing when using BPPARAM=MulticoreParam(workers = n))
- Receiving 'ref.clust' not in 'clusters' for cluster label that is part of predefined clusters HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scran.