[BioRuby] newick gsub(' ','_')

Tomoaki NISHIYAMA tomoakin at kenroku.kanazawa-u.ac.jp
Mon Jul 20 05:19:30 UTC 2009


Hi,

According to the specification of NEWICK at

http://evolution.genetics.washington.edu/phylip/newick_doc.html

SPACE in quoted string and underscore are regarded to be
identical.

In the note it reads
"Underscore characters in unquoted labels are converted to blanks. "

OTU label in MacClade and PAUP behaves similarly.
So, surrounding with single quote or replacing space with underscore
are both conforming representation.
-- 
Tomoaki NISHIYAMA

Advanced Science Research Center,
Kanazawa University,
13-1 Takara-machi,
Kanazawa, 920-0934, Japan





More information about the BioRuby mailing list