Tool to generate pcl type file

Hi, working through the HUMAnN tutorial, and the humann_barplot requires the metadata to be included in the file with the abundance data. Is there already a script that efficiently adds the metadata fields to the top to make that *.pcl file?

Hmm… I don’t think there is one packaged with the biobakery tools. It is basically a “join” operation on the sample names (which should be conserved between the feature file and the metadata file). I use this script from my personal codebase (which should be public) to complete this task:

Passing the metadata table via the -m flag will attach it to the top of a set of merged tables (or a single table).