Skip to content

Commit

Permalink
Add support for useLeiden
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed May 29, 2024
1 parent 85cca6d commit 1549b62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion singlecell/resources/chunks/FindClustersAndDimRedux.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ for (datasetId in names(seuratObjects)) {
printName(datasetId)
seuratObj <- readSeuratRDS(seuratObjects[[datasetId]])

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

saveData(seuratObj, datasetId)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ public Provider()
SeuratToolParameter.create("minDimsToUse", "Min. PCs to Use", "The minimum number of PCs to use", "ldk-integerfield", new JSONObject()
{{
put("minValue", 0);
}}, 15)
}}, 15),
SeuratToolParameter.create("useLeiden", "Use Leiden Clustering", "If true, FindClusters() will use algorith=4 (leiden), as opposed to the default (louvain)", "checkbox", new JSONObject(){{

}}, false)
), null, null);
}

Expand Down

0 comments on commit 1549b62

Please sign in to comment.