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

Exporting a tsv table and metadata file separately from a BIOM format file. #820

Closed
matomoniwano opened this issue Jul 31, 2019 · 8 comments

Comments

@matomoniwano
Copy link

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.

@raissameyer
Copy link

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!

@wasade
Copy link
Member

wasade commented Nov 15, 2019 via email

@raissameyer
Copy link

Hi @wasade
thanks for the quick response, I'll check it out.

@pieterprovoost this is the issue we discussed in the call. Linking you to it in case you're interested in checking it out 😃

@wasade
Copy link
Member

wasade commented Nov 22, 2019

Great!! If there is interest in a PR, I would aim to rapidly review and additionally to cut a micro release quickly after merge.

@pieterprovoost
Copy link
Contributor

@wasade Is it acceptable if I just wrap metadata_to_dataframe() in the CLI? I have a proof-of-concept here: pieterprovoost@c6a7d0f

@wasade
Copy link
Member

wasade commented Nov 25, 2019

@pieterprovoost, yes! That's wonderful! Would you like to issue that as a PR?

@pieterprovoost
Copy link
Contributor

Created PR #826

@wasade
Copy link
Member

wasade commented Nov 25, 2019

Fixed in #826. Thanks again @pieterprovoost -- I'll see if we can issue a release this week.

@wasade wasade closed this as completed Nov 25, 2019
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

4 participants