Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
Currently, the
Taxonobjects created for thetaxmapoutput ofparse_tax_datado not add rank information, although it is often available in various forms. This meanstaxon_ranks()does not work as expected (see grunwaldlab/metacoder#188 and grunwaldlab/metacoder#189).The challenge here is the diversity of inputs to
parse_tax_dataand the different ways ranks can be encoded:class_keyoption like "taxon_rank" could be added.class_keyoption or a new option that indicates ranks should be taken from column namesThis means there are 4 ways to encode rank and handling all would require at least 2 new options and a new
class_keyvalue. Theclass_keyvalue is intuitive and would not clutter the help page any, but I hesitate to add 2-3 options to handle rank.Currently, I am thinking of doing the following:
class_keycalled"taxon_rank"for when the rank and taxon name are together in a vector/column (quite common).named_by_rankso users can say when column/vector names are ranks. ( somewhat common)This will not handle lists of data.frames, but that is the least common input type. Maybe another option called "rank_col" could be added in the future.