Skip to content
Snippets Groups Projects
Commit f2285a20 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Add no downsampling (NA) as an option for sc_PC.Score.NE.R

parent b303a7b0
No related merge requests found
...@@ -105,7 +105,11 @@ plot(plot) ...@@ -105,7 +105,11 @@ plot(plot)
dev.off() dev.off()
#subsample all cells (+NE) to better visualize their clustering #subsample all cells (+NE) to better visualize their clustering
rnd <- sample(1:ncol(sc10x.Group@data),opt$sv) if (!is.na(opt$s)){
rnd <- sample(1:ncol(sc10x.Group@data),opt$sv)
} else {
rnd <- 1:ncol(sc10x.Group@data)
}
sc10x.Group <- SetIdent(object=sc10x.Group,cells.use=sc10x.Group@data@Dimnames[[2]][rnd],ident.use="sample") sc10x.Group <- SetIdent(object=sc10x.Group,cells.use=sc10x.Group@data@Dimnames[[2]][rnd],ident.use="sample")
if (clust$size[1]<clust$size[2]){ if (clust$size[1]<clust$size[2]){
clusterCut <- names(clusterCut[clusterCut==1]) clusterCut <- names(clusterCut[clusterCut==1])
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment