nexml / nexml.java

Java API for NeXML.
MIT License
4 stars 6 forks source link

Read character partitions from NeXML into Mesquite #11

Open balhoff opened 8 years ago

balhoff commented 8 years ago

I've been looking into how to include content in NeXML that shows up as a Group value for a character, as in the Characters list panel in Mesquite. Looking that the NEXUS file saved by Mesquite, Group shows up as a CHARPARTITION (for a group called "Skeleton"):

BEGIN SETS;
    CHARPARTITION * UNTITLED  (CHARACTERS = ) =  Skeleton :  1;

END;

Does this correspond to a set element in the NeXML format block? Implementation of reading that was missing from nexml.java, but I implemented it (will contribute after testing). After that I looked at the Mesquite plugin code in NexmlCharactersBlockReader.java but I cannot figure out how to use the Mesquite API to add a character partition. Does anyone know how that works?

balhoff commented 8 years ago

@pmidford do you know how to do this?

pmidford commented 8 years ago

I'll check, though I'm not terribly familiar with that portion of Mesquite.