Skip to content

Commit

Permalink
Merge pull request #979 from biomage-org/fix-leiden-hms
Browse files Browse the repository at this point in the history
Set louvain as main key for leiden
  • Loading branch information
ogibson authored Feb 5, 2024
2 parents 0bb8bd2 + 3a05323 commit a4c16b5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,16 +358,17 @@ const CalculationConfig = (props) => {
<Select
value={clusteringMethod}
disabled={disabled}
onChange={(value) => updateSettings(
{ clusteringSettings: { method: value } },
)}
onChange={(value) => {
updateSettings({
clusteringSettings: {
method: value,
},
});
dispatch(runCellSetsClustering(experimentId, resolution));
}}
>
<Option value='louvain'>Louvain</Option>
<Option value='leiden' disabled>
<Tooltip title='Leiden metric is going to be supported on a future version of the platform.'>
Leiden
</Tooltip>
</Option>
<Option value='leiden'>Leiden</Option>
<Option value='slm' disabled>
<Tooltip title='SLM metric is going to be supported on a future version of the platform.'>
SLM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const getTrajectoryPlotPseudoTime = (
},
clustering: {
method: clusteringSettings.method,
resolution: clusteringSettings.methodSettings[clusteringSettings.method].resolution,
resolution: clusteringSettings.methodSettings.louvain.resolution,
},
cellSets: selectedCellSets,
rootNodes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const getTrajectoryPlotStartingNodes = (
},
clustering: {
method: clusteringSettings.method,
resolution: clusteringSettings.methodSettings[clusteringSettings.method].resolution,
resolution: clusteringSettings.methodSettings.louvain.resolution,
},
cellSets: selectedCellSets,
};
Expand Down

0 comments on commit a4c16b5

Please sign in to comment.