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

Adding metadata to a biom-loaded MRexperiment object #57

Open
Jgruetzke opened this issue Feb 12, 2018 · 2 comments
Open

Adding metadata to a biom-loaded MRexperiment object #57

Jgruetzke opened this issue Feb 12, 2018 · 2 comments

Comments

@Jgruetzke
Copy link

Hey,

I used kraken to get the taxonomic abbundance estimations for my shotgun data. The output I get from kraken contains both counts and taxonomy. This format is however not supported to set up an MRexperiment object for that I would need an OTU table and a taxonomy table. As a workaround I created a biom-file with kraken and was able to set up a MRexperiment object with the biom2MRexperiment function. Both however, the biom-file and MRexperiment object do not contain any phenotypic information. I would like to use the fitTimeSeries function to analyze my data but to do this I need the PhenoData information in my MRexperiment object. I there any chance to extend the MRexperiment object with phenoData or do you have another solution for me?

Thank you in advance!

@hcorrada
Copy link
Contributor

Assuming you have phenotype data in a data.frame, you can assign the phenoData slot of the MRexperiment object:

phenoData(mrobj) <- AnnotatedDataFrame(my_pheno_data)

@Jgruetzke
Copy link
Author

It worked fine! Thank you!

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