Skip to content

Commit 40a6d51

Browse files
committed
Enable seurat merge to include extra validation
1 parent e9a24fd commit 40a6d51

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
@@ -12,7 +12,7 @@ if (length(seuratObjects) == 1) {
1212
gc()
1313
}
1414

15-
newSeuratObjects[[projectName]] <- CellMembrane::MergeSeuratObjs(seuratObjects, projectName = projectName, doGC = doDiet)
15+
newSeuratObjects[[projectName]] <- CellMembrane::MergeSeuratObjs(seuratObjects, projectName = projectName, doGC = doDiet, errorOnBarcodeSuffix = errorOnBarcodeSuffix)
1616
}
1717

1818
# Cleanup

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public Provider()
2727
SeuratToolParameter.create("projectName", "New Dataset Name", "The updated baseline for this merged object.", "textfield", new JSONObject(){{
2828
put("allowBlank", false);
2929
}}, null),
30-
SeuratToolParameter.create("doDiet", "Run DietSeurat", "If selected, this will run DietSeurat and gc() on the incoming seurat objects prior to merge. This is primarily to help with memory.", "checkbox", null, false, "dietSeurat", true, false)
30+
SeuratToolParameter.create("doDiet", "Run DietSeurat", "If selected, this will run DietSeurat and gc() on the incoming seurat objects prior to merge. This is primarily to help with memory.", "checkbox", null, false, "dietSeurat", true, false),
31+
SeuratToolParameter.create("errorOnBarcodeSuffix", "Error On Cell Barcode Suffixes", "In certain cases, software appends a digit (i.e. -1) to the end of cell barcodes; however, no code in DISCVR should do this. These are a problem if different datasets are inconsistent when using them. If this setting is checked, the code will error if these are encountered.", "checkbox", null, true, "errorOnBarcodeSuffix", true, false)
3132
), null, null);
3233
}
3334

0 commit comments

Comments
 (0)