Use dataset defined labels instead of hard-coded “cells” and “genes”#239
Use dataset defined labels instead of hard-coded “cells” and “genes”#239davehorsfall wants to merge 1 commit intodevfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #239 +/- ##
==========================================
- Coverage 13.96% 13.85% -0.11%
==========================================
Files 73 73
Lines 2385 2403 +18
Branches 576 577 +1
==========================================
Hits 333 333
- Misses 1991 2009 +18
Partials 61 61 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| valueLabel: { | ||
| singular: 'expression', | ||
| plural: 'expression', | ||
| }, |
There was a problem hiding this comment.
just to check, does valueLabel need a singular and plural? or does it only need to be a string value
| {!varList.length ? ( | ||
| <Alert variant="light">Search for a feature.</Alert> | ||
| <Alert variant="light"> | ||
| Search for a {dataset.varLabel.singular} |
There was a problem hiding this comment.
just flagging if we want to avoid using "a {something}" to avoid needing to check if it is "a" or "an"
| 'features' | ||
| dataset.varLabel.plural | ||
| )}{' '} | ||
| to display their expression distributions across all observations. |
There was a problem hiding this comment.
| to display their expression distributions across all observations. | |
| to display their {dataset.valueLabel.singular} distributions across all observations. |
| 'features' | ||
| dataset.varLabel.plural | ||
| )}{' '} | ||
| to display their expression across groups, then choose a{' '} |
There was a problem hiding this comment.
| to display their expression across groups, then choose a{' '} | |
| to display their {dataset.valueLabel.singular} across groups, then choose a{' '} |
| 'features' | ||
| dataset.varLabel.plural | ||
| )}{' '} | ||
| to display their expression, then choose a{' '} |
There was a problem hiding this comment.
| to display their expression, then choose a{' '} | |
| to display their {dataset.valueLabel.singular}, then choose a{' '} |
dannda
left a comment
There was a problem hiding this comment.
can this be added to the docs please?
Description
This PR enhances the UI to use dataset-driven labels instead of hard-coded terminology like “cells” and “genes”. This makes text flexible to different data modalities by using values from the dataset configuration (DatasetContext), including:
Changes include:
dataset.varLabel,dataset.obsLabel, anddataset.valueLabelobsSearchColdisplayNameFixes #238
Related to # (if applicable)
Type of change
Checklist
npm test)pre-commit run --all-files)