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

Uploading input files using the R console #5

Open
Juliana-Soto24 opened this issue Feb 18, 2021 · 1 comment
Open

Uploading input files using the R console #5

Juliana-Soto24 opened this issue Feb 18, 2021 · 1 comment

Comments

@Juliana-Soto24
Copy link

Hi,

I was wondering how can I load the feature count data, phenotype info, and taxonomy info files using the R console and not the GUI or shiny application.
In tutorial, there is only the this option for uploading data:
data("mouseData", package = "metagenomeSeq")
meData <- filterMEData(mouseData,minpresence = 1, minfeats = 2, minreads = 2)

Thanks,

Juliana

@zoecastillo
Copy link
Owner

Thank you for pointing this out. That is a very good point. I will update the documentation to include this.

There are a few functions in the functions.R file that help with this. You can use "readData" to process an RDS file already storing an MRExperiment or to load a counts matrix stored in tabular format (it has a parameter "type" which you can set according to the type of data). For the latter case, you would then use the functions "addPheno" and "addFeat" to add phenotype data and the taxonomy information.

I hope this helps for now.

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