public void parseLabelMapFromLine(String labelMapAsLine){
  NexusStreamParser np=new NexusStreamParser(new StringReader(labelMapAsLine));
  try {
    while (!np.peekMatchIgnoreCase(";")) {
      String sample=np.getWordRespectCase();
      np.matchIgnoreCase(":");
      String label=np.getWordRespectCase();
      sample2label.put(sample,label);
    }
  }
 catch (  IOException e) {
  }
}

public void parseLabelMapFromLine ( String labelMapAsLine ) { NexusStreamParser np = new NexusStreamParser ( new StringReader ( labelMapAsLine ) ) ; try { while ( ! np . peekMatchIgnoreCase ( ";" ) ) { String sample = np . getWordRespectCase ( ) ; np . matchIgnoreCase ( ":" ) ; String label = np . getWordRespectCase ( ) ; sample2label . put ( sample , label ) ; } } catch ( IOException e ) { } }
parse label map from line
