-
Notifications
You must be signed in to change notification settings - Fork 94
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
Exporting a tsv table and metadata file separately from a BIOM format file. #820
Comments
Hi BIOM dev team, Running into the same problem. I'd really like to work with BIOM files but if one can't handle the components of the biom file separately I think it would impede exchangeability. I tried pretty much the same thing that @matomoniwano described above. Any advice would be greatly appreciated! |
Hi Raissa, thank you for reaching out. We currently do not have a way to do
this from the command line but it can be done through the Python API
without too many steps. See [here](
http://biom-format.org/documentation/generated/biom.table.Table.metadata_to_dataframe.html#biom.table.Table.metadata_to_dataframe)
for an example of obtaining metadata on an axis in a pandas DataFrame.
We would certainly welcome a pull request to expose this functionality! But
we haven't been able to get to this particular task yet.
…On Fri, Nov 15, 2019, 7:49 AM Raissa Meyer ***@***.***> wrote:
Hi BIOM dev team,
Running into the same problem. I'd really like to work with BIOM files but
if one can't handle the components of the biom file separately I think it
would impede exchangeability.
I tried pretty much the same thing that @matomoniwano
<https://github.com/matomoniwano> described above.
Any advice would be greatly appreciated!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#820?email_source=notifications&email_token=AADTZMXPTALHH57PGRJJRR3QT3AIPA5CNFSM4IIFN7M2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEF22TY#issuecomment-554413391>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADTZMWVU7KBCWZP2BOA2YTQT3AIPANCNFSM4IIFN7MQ>
.
|
Hi @wasade @pieterprovoost this is the issue we discussed in the call. Linking you to it in case you're interested in checking it out 😃 |
Great!! If there is interest in a PR, I would aim to rapidly review and additionally to cut a micro release quickly after merge. |
@wasade Is it acceptable if I just wrap |
@pieterprovoost, yes! That's wonderful! Would you like to issue that as a PR? |
Created PR #826 |
Fixed in #826. Thanks again @pieterprovoost -- I'll see if we can issue a release this week. |
In order to exchange contingency tables and the corresponding metadata among other researchers, I was packaging a tsv table with sample and observation metadata into BIOM file with
biom add-metadata
command.However, I was not able to find a way to export a tsv table and its metadata SEPARATELY from the BIOM file, meaning I would like to have two output files, a tsv table and a text file that includes all the metadata that I added earlier (sample name, taxonomy, environmental data, and so on.).
There has been a relevant issue in the past, (/issues/632), but it's been 4 years ever since this issue was closed.
I was wondering if there is any way that I can export a table and metadata separately or the developers are working on the reverse function of
biom add-metadata
.Thanks
NOTE: I do not wish to use the convert option
--header-key 'taxonomy' --tsv-metadata-formatter
since the metadata is merged in the table.The text was updated successfully, but these errors were encountered: