Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using parse_tax_data function #210

Open
emankhalaf opened this issue Feb 24, 2022 · 1 comment
Open

Error when using parse_tax_data function #210

emankhalaf opened this issue Feb 24, 2022 · 1 comment

Comments

@emankhalaf
Copy link

emankhalaf commented Feb 24, 2022

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
Copy link
Collaborator

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: grunwaldlab/metacoder#334

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants