Package org.cipres.treebase.domain.matrix

Examples of org.cipres.treebase.domain.matrix.PhyloChar


                    org.nexml.model.Character nexCharacter = nexCharacters.get(i);
                    Assert.assertNotNull("The NeXML Character should not be null if there as an index into it in this set", nexCharacter);
                    Assert.assertTrue("The Subset should contain the character at index i", nexSubset.containsThing(nexCharacter));
                   
                    //get the treebase character for the index in this column range
                    PhyloChar tbCharacter = tbCharacterMatrix.getCharacter(i);
                    Assert.assertNotNull("The TreeBASE PhyloChar should not be null if there as an index into it in this set", tbCharacter);                   
                    Assert.assertEquals("If the TreeBASE character has a label, then the NeXML character's label should match it", tbCharacter.getLabel(), nexCharacter.getLabel());
                   
                  }
                }
                else {
                  System.out.println("NexmlMatrixConverter failed to create a Subset");
View Full Code Here


   * @param tbColumn
   * @param xmlCharacter
   */

  private void copyCharacterAttributes(MatrixColumn tbColumn,org.nexml.model.Character xmlCharacter) {
    PhyloChar tbCharacter = tbColumn.getCharacter();
    if ( null != tbCharacter.getDescription() ) {
      xmlCharacter.setLabel(tbCharacter.getLabel());
    }     
    attachTreeBaseID((Annotatable)xmlCharacter,tbColumn,MatrixColumn.class);
  }
View Full Code Here

TOP

Related Classes of org.cipres.treebase.domain.matrix.PhyloChar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.