peterjc / thapbi-pict

Tree Health and Plant Biosecurity Initiative - Phytophthora ITS1 Classifier Tool
https://thapbi-pict.readthedocs.io/
MIT License
8 stars 2 forks source link

Enhancement: Configurable colour mapping for edit-graph #556

Open peterjc opened 1 year ago

peterjc commented 1 year ago

Currently the node colours in the edit-graph output are assigned using a hard-coded genus mapping, defined here:

https://github.com/peterjc/thapbi-pict/blob/v0.14.1/thapbi_pict/edit_graph.py#L33

https://github.com/peterjc/thapbi-pict/blob/v0.14.1/thapbi_pict/edit_graph.py#L476

In words

It would be nice to offer a user defined genus:color mapping as an optional argument. e.g. as a TSV file?

As a workaround, the user may alter the XGMML output display once loaded into CytoScape,