smdabdoub / kraken-biom

Create BIOM-format tables (http://biom-format.org) from Kraken output (http://ccb.jhu.edu/software/kraken/, https://github.com/DerrickWood/kraken).
MIT License
47 stars 16 forks source link

Add metadata to biom table #11

Closed casperp closed 3 years ago

casperp commented 5 years ago

Problem

While working with the output BIOMs form this great tool I found out that not all tools like it when a BIOM file has no metadata.

fix

To fix this problem I've added the option for the user to add tsv metadata file to the BIOM file. These files can be Qiime style mapping files.

With -m you can tell which metadata file should be added. The first column in the metadata file needs to be the sample names (same as the imported files). When no metadata file is given as input dummy metadata is made. This is the sample name. {"Id": sample name} This way there is always metadata in the BIOM file.

changes made