Entering edit mode
4.4 years ago
dpc
▴
250
Hi there
Can anyone please tell me how can I import MetaPhlAn biom or profile file to phyloseq for subsequent statistical analysis? (I have analysed my data with MetaPhlAn 3.0)
Thanks
DC7
Hi,
Did you try?
Though this function is intended to import biom files produced in QIIME, with an option to parse the taxonomy. So, I'm not sure if it'll work in your case.
What you can do and it ensures some safety level is to convert your biom into a text file with the biom-format utilities and, then, import this table in text format to phyloseq. It may need a bit of parsing first.
António
António
Hi, I wam going to try according to your suggestion. Before that, a follow up query. I have 60 biom files. So, I have to merge them. Right? Do you know any such tools to merge them?
thanks, DC7
The different biom files, represent different samples?
António
eaxctly....the different biom files, represent different samples...
I think you can merge samples inside Metaphlan: https://github.com/biobakery/metaphlan/
That would be the safest option.
António
No, that's a different thing. There you can merge the abundance table only. You can't merge the
biom
tables.But your
biom
files are not abundance tables too?You could convert the
biom
tables to.txt
and then merge them. I'm not very familiar with mergingbiom
. It is possible onQIIME
to merge multiplebiom
tables, but I don't know if it will work in your case.António
Yes... from metaphlan I get one biom file (with abundance), one abundance file... But biom from qiime and from metaphlan are of two different types. The first one is
hdf5
and the later is injson
format. So, there is the problem. Also, when I tried to convert the json into hdf5, it wasn't converted properly. If you please don't mind, will you like to do a check from your side if I send you one file?Thanks, DC7
Did you try to convert your biom to text file with biom-convert and them merge then with the merge option of metaphlan?
António
Hi,
I've seen a a few of your posts @dpc and it seems like we're trying to do the same thing. I have used metphlantophyloseq.r functions to get my metaphlan rel ab data into phyloseq and want to put this into Deseq2.
Did you manage to do this? Did you covert the relative abundance into raw counts?
Thanks
Hi Chong!!! Where did you get the function? Can you please share the link? What I have done is to format the metaphlan output exactly like that of 16S output from motur/qiime and then feed into phyloseq. Although you have to spend some time for prior formatting, it will easily be imported. Please also let me know if you get any solution of
metphlantophyloseq.r
package.Thanks, dpc
Hi dpc,
These were my R commands :
This uses the function, from https://rdrr.io/github/wipperman/wipperman/src/R/microbiota.R:
I did this with the output of Metaphlan3 with -t rel_ab. Do you know if I can still use this in phyloseq and deseq2? You can't merge the tables from other options with metaphlan. Did you use relative abundance?
Thanks!
I am using relative abundance... I think you can't use deseq2. Because it uses absolute count. Thanks