Closed jtremblay closed 9 years ago
Thanks for reporting this @jtremblay! @wasade do you happen to have any ideas?
np, however I just find out that when I convert back hdf5 tables to tsv, taxonomy lineages are not written - the taxonomy column (header included) is simply not there... But when I dump the hdf5 file, I see the taxonomy information.
iirc, you need to explicitly indicate you want to retain a given
observation metadata when going to tsv. Have you looked at the examples in
biom convert --help
?
On Jul 16, 2015 3:39 PM, "Julien Tremblay" notifications@github.com wrote:
np, however I just find out that when I convert back hdf5 tables to tsv, taxonomy lineages are not written - the taxonomy column (header included) is simply not there...
— Reply to this email directly or view it on GitHub https://github.com/biocore/biom-format/issues/637#issuecomment-122109790 .
My bad, when including appropriate options it works fine. Sorry and thanks.
No worries, glad to help! If things are working, could you close the issue please? On Jul 16, 2015 4:22 PM, "Julien Tremblay" notifications@github.com wrote:
My bad, when including appropriate options it works fine. Sorry.
— Reply to this email directly or view it on GitHub https://github.com/biocore/biom-format/issues/637#issuecomment-122120684 .
Absolutely, done.
Thanks! On Jul 16, 2015 4:46 PM, "Julien Tremblay" notifications@github.com wrote:
Absolutely, done.
— Reply to this email directly or view it on GitHub https://github.com/biocore/biom-format/issues/637#issuecomment-122124332 .
Dear Biom-format developers, When I try to convert a tsv biom table to hdf5 format with this command:
biom convert -i ./otu_table.tsv -o ./otu_table.biom --table-type 'OTU table' --to-hdf5
I get the following error
As a temporary fix, in table.py (line 272), I changed:
value = np.asarray(m[header])
tovalue = str(value).split(";")
Seems to do the job for now. My Lineages (taxonomy columns) were following this nomenclature:k__Bacteria; p__Proteobacteria; c__Gammaproteobacteria; o__Alteromonadales; f__Alteromonadaceae; g__AlteromonadaceaeFA
Cheers,