Skip to content

Cannot set color of clade in phyloXML files #12

@MaybeJustJames

Description

@MaybeJustJames

Hi

I am using phyd3 javascript lib to display files in phyloXML format. I would like to color clades in specific colors and I use the color tag according to phyloXML documentation, E.g.

<phyloxml>
  <phylogeny rooted="true">
    <clade>
      <name>N95</name>
      <branch_length>0.0483218</branch_length>
      <color>
        <red>0</red>
        <green>0</green>
        <blue>255</blue>
      </color>
    </clade>
  </phylogeny>
</phyloxml>

The clade does not get colored blue.

I also tried modifying the tag to <color type="rgb" property="clade">


Notes by @MaybeJustJames
I tried several combinations of this on https://phyd3.bits.vib.be. The colour node is parsed correctly but the colour of nodes in the resulting SVG are not set. From the documentation here only colouring of domains and taxonomies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions