Skip to content

Commit 8d4b487

Browse files
committed
Add new param for ClrNormalizeByGroup
1 parent 023ceec commit 8d4b487

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

singlecell/resources/chunks/ClrNormalizeByGroup.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
for (datasetId in names(seuratObjects)) {
22
printName(datasetId)
33
seuratObj <- readRDS(seuratObjects[[datasetId]])
4-
seuratObj <- CellMembrane::ClrNormalizeByGroup(seuratObj, groupingVar = groupingVar, assayName = assayName, targetAssayName = targetAssayName, margin = margin, minCellsPerGroup = minCellsPerGroup, calculatePerFeatureUCell = calculatePerFeatureUCell, featureInclusionList = featureWhitelist, featureExclusionList = featureExclusionList)
4+
seuratObj <- CellMembrane::ClrNormalizeByGroup(seuratObj, groupingVar = groupingVar, assayName = assayName, targetAssayName = targetAssayName, margin = margin, minCellsPerGroup = minCellsPerGroup, calculatePerFeatureUCell = calculatePerFeatureUCell, featureInclusionList = featureWhitelist, featureExclusionList = featureExclusionList, doAsinhTransform = doAsinhTransform)
55

66
saveData(seuratObj, datasetId)
77

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ public Provider()
3535
SeuratToolParameter.create("minCellsPerGroup", "Min Cells Per Group", "Any group with fewer than this many cells will be dropped.", "ldk-integerfield", new JSONObject(){{
3636

3737
}}, 20),
38-
SeuratToolParameter.create("calculatePerFeatureUCell", "Calculate Per Feature UCell ", "If checked, UCell will be run over each ", "checkbox", new JSONObject(){{
38+
SeuratToolParameter.create("calculatePerFeatureUCell", "Calculate Per Feature UCell ", "If checked, UCell will be run over each ADT", "checkbox", new JSONObject(){{
39+
put("checked", true);
40+
}}, true),
41+
SeuratToolParameter.create("doAsinhTransform", "Do asinh Transform ", "If checked, count data will be transformed using asinh prior to CLR", "checkbox", new JSONObject(){{
3942
put("checked", true);
4043
}}, true),
4144
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(){{

0 commit comments

Comments
 (0)