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

Increase num.cores for parallel processing to 50

parent 7312d6f9
Branches
Tags
No related merge requests found
......@@ -75,7 +75,7 @@ sc10x.Group@data <- sc10x.Group@data[!rownames(sc10x.Group@data) %in% mito.genes
sc10x.Group <- FindVariableGenes(object=sc10x.Group,mean.function=ExpMean,dispersion.function=LogVMR,x.low.cutoff=0.0125,x.high.cutoff=3,y.cutoff=0.5,do.plot=FALSE)
if (opt$cc==TRUE){
gc()
sc10x.Group <- ScaleData(object=sc10x.Group,vars.to.regress=c("nUMI","percent.mito","S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=40)
sc10x.Group <- ScaleData(object=sc10x.Group,vars.to.regress=c("nUMI","percent.mito","S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=50)
gc()
sc10x.Group <- RunPCA(object=sc10x.Group,pc.genes=c(s.genes,g2m.genes),do.print=FALSE,pcs.store=2)
sc10x.Group <- SetAllIdent(object=sc10x.Group,id="Phase")
......@@ -87,7 +87,7 @@ if (opt$cc==TRUE){
dev.off()
} else {
gc()
sc10x.Group <- ScaleData(object=sc10x.Group,vars.to.regress=c("nUMI","percent.mito"),display.progress=FALSE,do.par=TRUE,num.cores=40)
sc10x.Group <- ScaleData(object=sc10x.Group,vars.to.regress=c("nUMI","percent.mito"),display.progress=FALSE,do.par=TRUE,num.cores=50)
gc()
}
sc10x.Group <- SetAllIdent(object=sc10x.Group,id="ALL")
......
......@@ -33,7 +33,7 @@ cc.genes <- readLines(con="./genesets/regev_lab_cell_cycle_genes.txt")
s.genes <- cc.genes[1:43]
g2m.genes <- cc.genes[44:97]
sc10x.Group <- NormalizeData(object=sc10x.Group)
sc10x.Group <- ScaleData(object=sc10x.Group,display.progress=FALSE,do.par=TRUE,num.cores=40)
sc10x.Group <- ScaleData(object=sc10x.Group,display.progress=FALSE,do.par=TRUE,num.cores=50)
sc10x.Group <- CellCycleScoring(object=sc10x.Group,s.genes=s.genes,g2m.genes=g2m.genes,set.ident=TRUE)
postscript(paste0("./analysis/",opt$g,"/cc/Ridge_cc.Raw.eps"))
plot <- RidgePlot(object=sc10x.Group,features.plot=c("PCNA","TOP2A","MCM6","MKI67"),y.log=TRUE,nCol=2,do.return=TRUE)
......
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