Skip to content

Commit b70e2b8

Browse files
committed
Support expectedDefaultAssay in merge
1 parent a41120f commit b70e2b8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

singlecell/resources/chunks/MergeSeurat.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ mergeBatchInMemory <- function(datasetIdToFilePath, saveFile) {
4343
stop('There were no passing seurat objects!')
4444
}
4545

46-
saveRDS(CellMembrane::MergeSeuratObjs(toMerge, projectName = projectName, doGC = doDiet, errorOnBarcodeSuffix = errorOnBarcodeSuffix), file = saveFile)
46+
saveRDS(CellMembrane::MergeSeuratObjs(toMerge, projectName = projectName, doGC = doDiet, errorOnBarcodeSuffix = errorOnBarcodeSuffix), file = saveFile, expectedDefaultAssay = expectedDefaultAssay)
4747
filesToDelete <<- c(filesToDelete, saveFile)
4848

4949
logger::log_info(paste0('mem used: ', R.utils::hsize(as.numeric(pryr::mem_used()))))

singlecell/src/org/labkey/singlecell/pipeline/singlecell/MergeSeurat.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public Provider()
3636
put("delimiter", ",");
3737
put("stripCharsRe", "/(^['\"]+)|(['\"]+$)/g");
3838
}}, "RNA.orig").delimiter(","),
39-
SeuratToolParameter.create("maxAllowableInputFileSizeMb", "Max Allowable Batch Size (MB)", "The largest allowable amount of data (in MB), measured as the size of the RDS files, to be allowed in one unit of data to merge in memory.", "ldk-integerfield", null, 200, "maxAllowableInputFileSizeMb", true, false)
39+
SeuratToolParameter.create("maxAllowableInputFileSizeMb", "Max Allowable Batch Size (MB)", "The largest allowable amount of data (in MB), measured as the size of the RDS files, to be allowed in one unit of data to merge in memory.", "ldk-integerfield", null, 200, "maxAllowableInputFileSizeMb", true, false),
40+
SeuratToolParameter.create("expectedDefaultAssay", "Default Assay", "The merged objects will be expected to have this assay", "textfield", null, "RNA", null, true, false)
4041
), null, null);
4142
}
4243

0 commit comments

Comments
 (0)