|
I'm having a bit of difficulty using your API, and hoping for a bit of help. I have a block that looks like this:
#NEXUS
BEGIN TREES;
TRANSLATE
1 name1,
2 name2,
3 name3;
TREE tree1 = ((1,2),3);
END;
Reading in this file will give OTUs of "1,2,3". I would like to rename them "name1, name2, name3". How do I access the TRANSLATE mapping to make a hash to use in rename()? Or is there some easier method?
I notice that there is a hash created in the internal representation of the block called "translation". It's empty, though. Was this supposed to have this information in it?
|