Skip to content

Commit

Permalink
disable bin step for the knee plot
Browse files Browse the repository at this point in the history
Signed-off-by: stefanbabukov <[email protected]>
  • Loading branch information
StefanBabukov committed Nov 27, 2023
1 parent 66e61ea commit e445326
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const MIN_CELL_SIZE_PLACEHOLDER = 10800;

const CellSizeDistributionConfig = (props) => {
const {
config, disabled, updateSettings, highestUmi,
config, disabled, updateSettings, highestUmi, plotType,
} = props;

const withinRange = (cellSize) => Math.max(Math.min(cellSize, highestUmi), 0);
Expand Down Expand Up @@ -54,7 +54,7 @@ const CellSizeDistributionConfig = (props) => {
onUpdate={(value) => {
updateSettings({ binStep: value });
}}
disabled={disabled}
disabled={disabled || plotType === 'kneePlot'}
/>
</Form.Item>
</>
Expand All @@ -65,12 +65,14 @@ CellSizeDistributionConfig.defaultProps = {
config: {},
disabled: false,
highestUmi: null,
plotType: null,
};
CellSizeDistributionConfig.propTypes = {
updateSettings: PropTypes.func,
config: PropTypes.object,
disabled: PropTypes.bool,
highestUmi: PropTypes.number,
plotType: PropTypes.string,
};

export default CellSizeDistributionConfig;

0 comments on commit e445326

Please sign in to comment.