Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bin/DoubletFinder.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ params.scaleMethod <- args[6]
# ╔═════════════════════════════════╗
# ╠═ Preparation for Find Doublets ═╣
# ╚═════════════════════════════════╝

# set future max
options(future.globals.maxSize = 4 * 1024^3) # 4 GiB

message("Preparing for Find Doublets")
# read in .rds
samp <- readRDS(params.SeuratObject)
Expand Down
6 changes: 5 additions & 1 deletion bin/Merge.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ message("Loading in Seurat Objects")
SeuratRDSfiles <- list.files(pattern = "\\.rds$", ignore.case = T)
SampleNames <- c()

counter <- 1
counter <- 1
for( file in SeuratRDSfiles){
ObjName <- gsub("^02_","",gsub("_Doublets.*","", file))
SampleNames <- append(SampleNames,ObjName)
Expand Down Expand Up @@ -94,6 +94,10 @@ dev.off()
# ╔══════════════════════════════╗
# ╠═ Scale Merged Seurat Object ═╣
# ╚══════════════════════════════╝

# set future max
options(future.globals.maxSize = 4 * 1024^3) # 4 GiB

message("Scaling Merged Seurat Object")
# create a list of all genes
all.genes <- rownames(MergedSO)
Expand Down
8 changes: 4 additions & 4 deletions bin/Normalize_QC.R
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ dev.off()
# ╠═ Subset via Metadata ═╣
# ╚═══════════════════════╝
message("Subsetting Seurat Object via Metadata")
minNCount <- quantile(get(NameSO)$nCount_RNA, probs = seq(0,1,0.05))[[paste0(params.ncount_lower, "%")]]
minNFeature <- quantile(get(NameSO)$nFeature_RNA, probs = seq(0,1,0.05))[[paste0(params.nfeature_lower, "%")]]
maxNCount <- quantile(get(NameSO)$nCount_RNA, probs = seq(0,1,0.05))[[paste0(params.ncount_upper, "%")]]
maxNFeature <- quantile(get(NameSO)$nFeature_RNA, probs = seq(0,1,0.05))[[paste0(params.nfeature_upper, "%")]]
minNCount <- quantile(get(NameSO)$nCount_RNA, probs = seq(0,1,0.01))[[paste0(params.ncount_lower, "%")]]
minNFeature <- quantile(get(NameSO)$nFeature_RNA, probs = seq(0,1,0.01))[[paste0(params.nfeature_lower, "%")]]
maxNCount <- quantile(get(NameSO)$nCount_RNA, probs = seq(0,1,0.01))[[paste0(params.ncount_upper, "%")]]
maxNFeature <- quantile(get(NameSO)$nFeature_RNA, probs = seq(0,1,0.01))[[paste0(params.nfeature_upper, "%")]]
maxMitoPct <- as.integer(params.mito_pct)

print(minNFeature)
Expand Down
Loading