thanhleviet / brownie

Automatically exported from code.google.com/p/brownie
0 stars 0 forks source link

taxon names leading with digits parsed as numbers #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've just found that if your taxon names start with digits (i.e., "14_pepper"), 
brownie does not parse this properly when reading taxsets created by calling 
taxon names: "taxset tasty = 14_pepper" is interpreted as "taxset tasty = 14", 
regardless of whatever taxon number 14_pepper has. This becomes noticeable if 
the number is less than ntax (i.e., if it can't find taxon 14 in a five taxon 
dataset, it will object) but is always a problem (unless your taxon name 
numeric prefix matches the order of taxa). The error has to do with how the 
very old version of the NCL brownie currently uses parses names. Passing in 
taxsets with numeric identifiers "taxset spicy = 1-5 7 12" should work without 
problems, as should using "normal" taxon names (i.e. "pepper").

see dataset from Gustavo Bravo June 22 2010.

Temporary solution is avoiding "bad" taxon names. Upgrading to new NCL may??? 
fix this.

Original issue reported on code.google.com by omeara.brian@gmail.com on 22 Jun 2010 at 3:44