Skip to content

Commit 1549b62

Browse files
committed
Add support for useLeiden
1 parent 85cca6d commit 1549b62

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

singlecell/resources/chunks/FindClustersAndDimRedux.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ for (datasetId in names(seuratObjects)) {
22
printName(datasetId)
33
seuratObj <- readSeuratRDS(seuratObjects[[datasetId]])
44

5-
seuratObj <- CellMembrane::FindClustersAndDimRedux(seuratObj, minDimsToUse = minDimsToUse)
5+
seuratObj <- CellMembrane::FindClustersAndDimRedux(seuratObj, minDimsToUse = minDimsToUse, useLeiden = useLeiden)
66

77
saveData(seuratObj, datasetId)
88

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ public Provider()
2424
SeuratToolParameter.create("minDimsToUse", "Min. PCs to Use", "The minimum number of PCs to use", "ldk-integerfield", new JSONObject()
2525
{{
2626
put("minValue", 0);
27-
}}, 15)
27+
}}, 15),
28+
SeuratToolParameter.create("useLeiden", "Use Leiden Clustering", "If true, FindClusters() will use algorith=4 (leiden), as opposed to the default (louvain)", "checkbox", new JSONObject(){{
2829

30+
}}, false)
2931
), null, null);
3032
}
3133

0 commit comments

Comments
 (0)