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

Reduce max nodes from 50 to 45 for parallel processing

parent 4115d3bc
No related merge requests found
...@@ -91,7 +91,7 @@ scCellCycle <- function(sc10x){ ...@@ -91,7 +91,7 @@ scCellCycle <- function(sc10x){
genes.s <- genes.cc[1:43] genes.s <- genes.cc[1:43]
genes.g2m <- genes.cc[44:97] genes.g2m <- genes.cc[44:97]
sc10x <- NormalizeData(object=sc10x) sc10x <- NormalizeData(object=sc10x)
sc10x <- ScaleData(object=sc10x,display.progress=FALSE,do.par=TRUE,num.cores=50) sc10x <- ScaleData(object=sc10x,display.progress=FALSE,do.par=TRUE,num.cores=45)
sc10x <- CellCycleScoring(object=sc10x,s.genes=genes.s,g2m.genes=genes.g2m,set.ident=TRUE) sc10x <- CellCycleScoring(object=sc10x,s.genes=genes.s,g2m.genes=genes.g2m,set.ident=TRUE)
postscript("./analysis/qc/cc/Ridge_cc.Raw.eps") postscript("./analysis/qc/cc/Ridge_cc.Raw.eps")
...@@ -110,7 +110,7 @@ scCellCycle <- function(sc10x){ ...@@ -110,7 +110,7 @@ scCellCycle <- function(sc10x){
plot(plot) plot(plot)
dev.off() dev.off()
gc() gc()
sc10x <- ScaleData(object=sc10x,vars.to.regress=c("S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=50) sc10x <- ScaleData(object=sc10x,vars.to.regress=c("S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=45)
gc() gc()
sc10x <- RunPCA(object=sc10x,pc.genes=c(genes.s,genes.g2m),do.print=FALSE,pcs.store=2) sc10x <- RunPCA(object=sc10x,pc.genes=c(genes.s,genes.g2m),do.print=FALSE,pcs.store=2)
postscript("./analysis/qc/cc/PCA_cc.Norm.eps") postscript("./analysis/qc/cc/PCA_cc.Norm.eps")
...@@ -225,9 +225,9 @@ scPC <- function(sc10x,lx=0.15,hx=3.5,ly=0.75,cc=FALSE,pc=50,hpc=0.75,file="pre. ...@@ -225,9 +225,9 @@ scPC <- function(sc10x,lx=0.15,hx=3.5,ly=0.75,cc=FALSE,pc=50,hpc=0.75,file="pre.
if (cca==FALSE){ if (cca==FALSE){
gc() gc()
if (cc==TRUE){ if (cc==TRUE){
sc10x <- ScaleData(object=sc10x,vars.to.regress=c("nUMI","percent.mito","S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=50) sc10x <- ScaleData(object=sc10x,vars.to.regress=c("nUMI","percent.mito","S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=45)
} else { } else {
sc10x <- ScaleData(object=sc10x,vars.to.regress=c("nUMI","percent.mito"),display.progress=FALSE,do.par=TRUE,num.cores=50) sc10x <- ScaleData(object=sc10x,vars.to.regress=c("nUMI","percent.mito"),display.progress=FALSE,do.par=TRUE,num.cores=45)
} }
gc() gc()
} }
...@@ -982,17 +982,17 @@ scDEG <- function(sc10x,i="Lin",g.1="Epi",g.2="St",pct=0.25,t=2){ ...@@ -982,17 +982,17 @@ scDEG <- function(sc10x,i="Lin",g.1="Epi",g.2="St",pct=0.25,t=2){
scCCA <- function(sc10x.1,sc10x.2,nm.1="D17",nm.2="D27",cc=FALSE){ scCCA <- function(sc10x.1,sc10x.2,nm.1="D17",nm.2="D27",cc=FALSE){
gc() gc()
if (cc==TRUE){ if (cc==TRUE){
sc10x.1 <- ScaleData(object=sc10x.1,vars.to.regress=c("nUMI","percent.mito","S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=50) sc10x.1 <- ScaleData(object=sc10x.1,vars.to.regress=c("nUMI","percent.mito","S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=45)
} else { } else {
sc10x.1 <- ScaleData(object=sc10x.1,vars.to.regress=c("nUMI","percent.mito"),display.progress=FALSE,do.par=TRUE,num.cores=50) sc10x.1 <- ScaleData(object=sc10x.1,vars.to.regress=c("nUMI","percent.mito"),display.progress=FALSE,do.par=TRUE,num.cores=45)
} }
gc() gc()
gc() gc()
if (cc==TRUE){ if (cc==TRUE){
sc10x.2 <- ScaleData(object=sc10x.2,vars.to.regress=c("nUMI","percent.mito","S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=50) sc10x.2 <- ScaleData(object=sc10x.2,vars.to.regress=c("nUMI","percent.mito","S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=45)
} else { } else {
sc10x.2 <- ScaleData(object=sc10x.2,vars.to.regress=c("nUMI","percent.mito"),display.progress=FALSE,do.par=TRUE,num.cores=50) sc10x.2 <- ScaleData(object=sc10x.2,vars.to.regress=c("nUMI","percent.mito"),display.progress=FALSE,do.par=TRUE,num.cores=45)
} }
gc() gc()
...@@ -1052,25 +1052,25 @@ scCCA <- function(sc10x.1,sc10x.2,nm.1="D17",nm.2="D27",cc=FALSE){ ...@@ -1052,25 +1052,25 @@ scCCA <- function(sc10x.1,sc10x.2,nm.1="D17",nm.2="D27",cc=FALSE){
sc3CCA <- function(sc10x.1,sc10x.2,sc10x.3,nm.1="D17",nm.2="D27",nm.3="D35",cc=FALSE){ sc3CCA <- function(sc10x.1,sc10x.2,sc10x.3,nm.1="D17",nm.2="D27",nm.3="D35",cc=FALSE){
gc() gc()
if (cc==TRUE){ if (cc==TRUE){
sc10x.1 <- ScaleData(object=sc10x.1,vars.to.regress=c("nUMI","percent.mito","S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=50) sc10x.1 <- ScaleData(object=sc10x.1,vars.to.regress=c("nUMI","percent.mito","S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=45)
} else { } else {
sc10x.1 <- ScaleData(object=sc10x.1,vars.to.regress=c("nUMI","percent.mito"),display.progress=FALSE,do.par=TRUE,num.cores=50) sc10x.1 <- ScaleData(object=sc10x.1,vars.to.regress=c("nUMI","percent.mito"),display.progress=FALSE,do.par=TRUE,num.cores=45)
} }
gc() gc()
gc() gc()
if (cc==TRUE){ if (cc==TRUE){
sc10x.2 <- ScaleData(object=sc10x.2,vars.to.regress=c("nUMI","percent.mito","S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=50) sc10x.2 <- ScaleData(object=sc10x.2,vars.to.regress=c("nUMI","percent.mito","S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=45)
} else { } else {
sc10x.2 <- ScaleData(object=sc10x.2,vars.to.regress=c("nUMI","percent.mito"),display.progress=FALSE,do.par=TRUE,num.cores=50) sc10x.2 <- ScaleData(object=sc10x.2,vars.to.regress=c("nUMI","percent.mito"),display.progress=FALSE,do.par=TRUE,num.cores=45)
} }
gc() gc()
gc() gc()
if (cc==TRUE){ if (cc==TRUE){
sc10x.3 <- ScaleData(object=sc10x.3,vars.to.regress=c("nUMI","percent.mito","S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=50) sc10x.3 <- ScaleData(object=sc10x.3,vars.to.regress=c("nUMI","percent.mito","S.Score","G2M.Score"),display.progress=FALSE,do.par=TRUE,num.cores=45)
} else { } else {
sc10x.3 <- ScaleData(object=sc10x.3,vars.to.regress=c("nUMI","percent.mito"),display.progress=FALSE,do.par=TRUE,num.cores=50) sc10x.3 <- ScaleData(object=sc10x.3,vars.to.regress=c("nUMI","percent.mito"),display.progress=FALSE,do.par=TRUE,num.cores=45)
} }
gc() gc()
......
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