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

Update to include multisample tables #7

Open
wants to merge 103 commits into
base: master
Choose a base branch
from
Open

Conversation

cbulow
Copy link

@cbulow cbulow commented Sep 26, 2016

Thank you for this very useful function! I have been using it to trim down some humann2 data involving comparisons between samples. For input I have a merged and normalized table humann2 output. I've made some changes to format_humann2_output.py to accept this file type as input and thought others might find them useful.

This branch supports humann2 multi-sample merged tables as input and writes a column for each sample abundance in the output files. Additionally, this branch supports input files that contain additional information after the "UNGROUPED" designation or are labeled "UNMAPPED". I have attached a test input table.

I've fixed the modified the format_humann2_output.py script to round to the nearest integer. This prevents inconsistency between environments but can be modified. I've also modified the test script to allow differences in conversion of tab spacing to white space.

More info on humann2 multi-sample merged tables: https://bitbucket.org/biobakery/biobakery/wiki/humann2#rst-header-humann2-for-multiple-samples

Support for humann2 multi-sample merged tables.

How to generate and normalize merged tables: https://bitbucket.org/biobakery/biobakery/wiki/humann2#rst-header-humann2-for-multiple-samples
Added multisample table for test data
Update format_humann2_output.py
remove blank line after header
Ignore differences in whitespace representations of Tabs
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

Successfully merging this pull request may close these issues.

1 participant