ropensci / taxa

taxonomic classes for R
https://docs.ropensci.org/taxa
Other
48 stars 12 forks source link

Error when using parse_tax_data function #210

Open emankhalaf opened 2 years ago

emankhalaf commented 2 years ago
I have a feature table with taxonomy collapsed to the genus level, where the first column is the taxonomy (ranks separated by ;), then the rest of columns represents samples_id showing the read count of each feature. I need to split the taxonomy column into 6 taxonomic ranks using parse_tax_data function. I used this code: ``` obj <- parse_tax_data(feature-table-with-taxonomyl6, class_cols = "taxonomy", class_sep = ";", class_regex = "^([a-z]{0,1})_{0,2}(.*)$", class_key = c("tax_rank" = "taxon_rank", "name" = "taxon_name")) print(obj) ``` then I got this error: ``` Error in parse_tax_data(feature - table - with - taxonomyl6, class_cols = "taxonomy", : could not find function "parse_tax_data" ``` However, I already loaded taxa package but I have a problem when installed devtools. Thanks! Eman
zachary-foster commented 2 years ago

This function is now in metacoder, although something like it might be in taxa again eventually. I have created an issue in the metacoder repo here: https://github.com/grunwaldlab/metacoder/issues/334