cytoscape / enrichment-map-webapp

MIT License
6 stars 0 forks source link

Use 'description' field for pathway names #276

Closed mikekucera closed 4 months ago

mikekucera commented 6 months ago

Describe the bug

The baderlab pathway database contains a "description" column that contains human-readable pathway names. We should be using this for node labels.

The description field generally has lowercased words, but acronyms like "DNA" are uppercase. We could uppercase the first letter of the words, or just the first word, then leave everything else as-is.

We are currently parsing the label out of the pathway 'name' field, which does not contain any useful formatting.

Screenshot 2024-03-15 at 4 07 24 PM

Note: EM-desktop uses the description field for its labels.

I have to admit its my fault for not realizing this sooner. We could have been using the description field this whole time.

mikekucera commented 6 months ago

I think the best way to handle this is to have the EM-service return the description field as part of the node data. This will be much easier than having to query mongo for all the descriptions using the node names.

Here is an example what the new field will look like...

Screenshot 2024-03-21 at 4 27 08 PM
mikekucera commented 6 months ago

https://github.com/cytoscape/enrichmentmap-service/issues/2

mikekucera commented 6 months ago

Here's another example. Its actually pretty well formatted. I think we can use these directly.

Screenshot 2024-03-21 at 4 37 19 PM