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

Add a function to convert a melted data frame to a phyloseq object #67

Open
mikemc opened this issue Jun 3, 2021 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@mikemc
Copy link
Owner

mikemc commented Jun 3, 2021

A use case I sometimes find myself in when analyzing taxonomic bias in a CoDA framework is wanting to zero-out a specific set of observations (e.g. of a particular taxon in a particular set of samples). Sometimes this is very easy to do in the melted data frame given by psmelt() or ps_tibble(); but we currently lack an easy way to convert these back into a phyloseq object. I suspect there are other use cases for this workflow of phyloseq -> data frame -> modify abundances -> phyloseq

@mikemc mikemc added the enhancement New feature or request label Jun 3, 2021
@mikemc
Copy link
Owner Author

mikemc commented Jun 25, 2021

Can create a genetic method as_phyloseq() that converts data frames to phyloseq objects based on matching the special column names used in the as_tibble() methods

@adw96
Copy link

adw96 commented Sep 1, 2021

Just to add my enthusiasm for such a function -- I agree that an inverse of psmelt() / ps_tibble() would be amazing! 🌟

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

No branches or pull requests

2 participants