Skip to content

Commit f68174d

Browse files
committed
Expose filterDisallowedClasses for UpdateSeuratPrototype
1 parent 6eb8ab3 commit f68174d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

singlecell/resources/chunks/UpdateSeuratPrototype.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ for (datasetId in names(seuratObjects)) {
2626
}
2727

2828
if (runRira) {
29-
seuratObj <- RIRA::Classify_ImmuneCells(seuratObj, maxBatchSize = 500000, retainProbabilityMatrix = FALSE, maxAllowedUnknown = maxAllowedUnknown)
29+
seuratObj <- RIRA::Classify_ImmuneCells(seuratObj, maxBatchSize = 500000, retainProbabilityMatrix = FALSE, maxAllowedUnknown = maxAllowedUnknown, filterDisallowedClasses = filterDisallowedClasses)
3030
seuratObj <- RIRA::Classify_TNK(seuratObj, maxBatchSize = 500000, retainProbabilityMatrix = FALSE)
3131
seuratObj <- RIRA::Classify_Myeloid(seuratObj, maxBatchSize = 500000, retainProbabilityMatrix = FALSE)
3232
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ public Provider()
6464
{{
6565
put("checked", false);
6666
}}, false),
67+
SeuratToolParameter.create("filterDisallowedClasses", "Filter Disallowed Classes (RIRA)", "This applies to RIRA classification. If true, then cells will be filtered based on expression of common contaminants, such as RBC or platelet genes ", "checkbox", new JSONObject()
68+
{{
69+
put("checked", true);
70+
}}, true),
6771
SeuratToolParameter.create("maxAllowedUnknown", "Max Allowed Unknown (RIRA)", "If provided, this step will throw an error is more than this fraction of cells fail the check for disallowed UCell combinations", "ldk-numberfield", new JSONObject()
6872
{{
6973
put("minValue", 0);

0 commit comments

Comments
 (0)