Skip to content

Commit efa3469

Browse files
committed
Support feature inclusion/exclusion lists for celltypist train
1 parent 958dff9 commit efa3469

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

singlecell/resources/chunks/TrainCelltypist.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ datasetId <- names(seuratObjects)[[1]]
66
printName(datasetId)
77
seuratObj <- readRDS(seuratObjects[[datasetId]])
88

9-
RIRA::TrainCellTypist(seuratObj, labelField = labelField, minCellsPerClass = minCellsPerClass, excludedClasses = excludedClasses, modelFile = modelFile, tempFileLocation = '/work')
9+
RIRA::TrainCellTypist(seuratObj, labelField = labelField, minCellsPerClass = minCellsPerClass, excludedClasses = excludedClasses, modelFile = modelFile, featureWhitelist = featureWhitelist, featureExclusionList = featureExclusionList, tempFileLocation = '/work')

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,15 @@ public Provider()
5454
put("width", 400);
5555
put("height", 200);
5656
put("delimiter", ";");
57-
}}, "NA", "excludedClasses", true, true)
57+
}}, "NA", "excludedClasses", true, true),
58+
SeuratToolParameter.create("featureWhitelist", "Genes to Add to VariableFeatures", "These genes, entered comma-separated or one/line, will be added to the default Seurat::VariableFeatures gene set when running PCA", "sequenceanalysis-trimmingtextarea", new JSONObject(){{
59+
put("height", 150);
60+
put("delimiter", ",");
61+
}}, null).delimiter(","),
62+
SeuratToolParameter.create("featureExclusionList", "Genes to Exclude From VariableFeatures", "These genes, entered comma-separated or one/line, will be excluded from the genes passed to RunPCA (which is otherwise determined by Seurat::VariableFeatures)", "sequenceanalysis-trimmingtextarea", new JSONObject(){{
63+
put("height", 150);
64+
put("delimiter", ",");
65+
}}, null).delimiter(",")
5866
), null, null);
5967
}
6068

0 commit comments

Comments
 (0)