Entering edit mode
4.3 years ago
goliat0704
•
0
I'm new to R and have trouble importing data to decontam as phyloseq objects. The OTU table and taxonomy is in .txt and the metadata in an excel file. Could someone help?
Hi,
Can you provide the code that you used or the error that you got, please?
António
Hey Antonio,
I am alsy new to are and have troubles importing the MetaPhlAn3 output table as a phyloseq object to use that for the R package decontam. I merged several metaphlan analyses with the metaphlan internal command "merge_table".
Then I imported the data into R using the read.table command:
After that, I wanted to assign this to an otu_table
and I receive:
What am I doing wrong?
Hi,
Your data
merged_metaphlan
contains columns that are character or factor, i.e., not all the columns are numbers.Can you provide a quick overview of the table here, by doing:
head(merged_metaphlan)
Though I would advise you to add a new post with this issue, because it is not related with the question on this post.
António
Thanks a lot for the prompt answer! Here is an overview of the object merged_metaphlan
If i can't use characters, do I need to abbreviate the clade name with numbers and link the real clade name to the numbers in another file? Or is there another possibility of a work around?
Either way, I will also post this as a new issue :)