From d2298ee56c20d358302d95b18a5596511141ce01 Mon Sep 17 00:00:00 2001 From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu> Date: Thu, 19 Apr 2018 12:02:52 -0500 Subject: [PATCH] Increase num.cores for parallel processing to 50 --- r.scripts/sc_QC.R | 4 ++-- r.scripts/sc_Seurat.Score.CellCycle.R | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/r.scripts/sc_QC.R b/r.scripts/sc_QC.R index e458b1a..1030166 100755 --- a/r.scripts/sc_QC.R +++ b/r.scripts/sc_QC.R @@ -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") diff --git a/r.scripts/sc_Seurat.Score.CellCycle.R b/r.scripts/sc_Seurat.Score.CellCycle.R index a60fc27..4cf22d5 100755 --- a/r.scripts/sc_Seurat.Score.CellCycle.R +++ b/r.scripts/sc_Seurat.Score.CellCycle.R @@ -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) -- GitLab