ManifoldMap app#19
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
|
Hi @droumis, sorry for making you fight Ruff so much! I fixed the rest. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #19 +/- ##
===========================================
+ Coverage 70.21% 80.38% +10.17%
===========================================
Files 6 8 +2
Lines 235 571 +336
Branches 28 60 +32
===========================================
+ Hits 165 459 +294
- Misses 58 82 +24
- Partials 12 30 +18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I added the following task, but feel free to punt it to the next PR if there's no time to address it by EOW "Add a check for gene symbols (e.g. 'ctla4') somewhere as a .var column and use them instead of the 'ENS...' strings for the color_by variable options if they exist." Context:
|
I thought implementing this would be straightforward. Apparently, I haven't yet done this long enough yet to guess that right! First, I've hit an issue similar to this one holoviz/hvplot#1414, because I added Then, I tried the above with categorical color data and hit two errors, reported in holoviz/holoviews#6620, with a Bokeh front-end error and a HoloViews python error. Looked a bit into it but would need more time to figure out what's going on there. I kept going with the continuous color data and managed to get something working (f9a5689). I have tested it a bit and it seemed to work, though it would need more testing. |
On this, looking into the dataset I've been using (https://cellxgene.cziscience.com/collections/efd94500-1fdc-4e28-9e9f-a309d0154e21), I can see it has a Is this It looks like each entry is formatted as red = adata.var["feature_name"].apply(lambda r: r.split("_")[0])
adata.var.loc[red.duplicated(keep=False), "feature_name"]So I've decided to let the name as is, instead of splitting
|
|
Nice! yea I think exposing it is sufficient, we can always change it later if a standardized unique hugo-esque convention is field is formed. Are you working on holoviz/holoviews#6620 or does it need a team discussion to move forward? |
|
Looks like the Bokeh tools differ between categorical and continuous color_by options... we definitely always want box and lasso selection tools. Also, can we make the selection tool persistent so that selected area is visible even while datashading points?
|
Simon has fixed (merged already) the Python error I reported. The front-end error is still there. I'm not sure to what extent he looked into it holoviz/holoviews#6620 (comment).
That's now fixed. I think it is related to holoviz/holoviews#6240, i.e. setting tools via
I've enabled that in c138b28 At the moment,
The categorical case is giving me more trouble:
I need to spend a bit of time creating an MRE for each one of these issues (making sure it's not PEBKAC!). @droumis if you need this PR merged soon, I'd suggest postponing using |
|
Thanks for catching all of these! I think it's great that we're finally road-testing apply_when. Let's revert and save apply_when for the next PR so we can merge this one. |
|
@maximlt , I made the plot sizing |
LGTM! I'm going to fix the test suite now and I guess we can merge soon after that. |
|
feel free to merge when you're ready with the tests |





Get Data
TODO in this PR:
Ensure the legend is to the right when datashade and overlaid labels are disabled-> Bokeh bug, fixed in Fix positioning of DOM rendered Legend annotations bokeh/bokeh#14457, released in version 3.7.3Fix issue when continuous gene expression measure from e.g. adata.var_names[0] is input for-> Haven't been able to reproducecolor_by... for some reason it's not always being found and quietly resorts to choosing the first color_by option from adata.osbm.. Looks like there's the plotting is being double-triggered and it's correct at first but then gets messed up..Future TODOs and Wishlist Items moved here