Skip to content

Cannot set color of clade in phyloXML files #12

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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