Merge_metaphlan_tables.py with absolute abundance

Now this script modification works with Metaphlan4. It is an original script from Metaphlan4, modified to merge “absolute” counts instead of relative ones.

  1. Download the file. Put it anywhere.
    merge_metaphlan_tables_abs.txt (3.3 KB)
  2. Rename it to replace “.txt” extension to “.py”
  3. Make it executable (replace “path_to” with a path to file):
    chmod +x path_to/merge_metaphlan_tables_abs.py
  4. Run it as original script, but provide path_to/merge_metaphlan_tables_abs.py in a command, with a path to the script.
1 Like