News and Announcements » |
Description:
Create an interactive OTU heatmap from an OTU table. This script parses the OTU count table and filters the table by counts per otu (user-specified), then converts the table into a javascript array, which can be loaded into a web application. The OTU heatmap displays raw OTU counts per sample, where the counts are colored based on the contribution of each OTU to the total OTU count present in that sample (blue: contributes low percentage of OTUs to sample; red: contributes high percentage of OTUs). This web application allows the user to filter the otu table by number of counts per otu. The user also has the ability to view the table based on taxonomy assignment. Additional features include: the ability to drag rows (up and down) by clicking and dragging on the row headers; and the ability to zoom in on parts of the heatmap by clicking on the counts within the heatmap.
Usage: make_otu_heatmap_html.py [options]
Input Arguments:
Note
[REQUIRED]
[OPTIONAL]
Output:
The interactive heatmap is located in OUTPUT_DIR/otu_table.html where OUTPUT_DIR is specified as -o. Safari is recommended for viewing the OTU Heatmap, since the HTML table generation is much faster than Firefox (as of this writing).
Generate an OTU heatmap:
By using the default values (“-n 5), you can then use the code as follows:
make_otu_heatmap_html.py -i otu_table.biom -o heatmap/
Generate a filtered OTU heatmap:
If you would like to filter the OTU table by a different number of counts per OTU (i.e., 10):
make_otu_heatmap_html.py -i otu_table.biom -n 10 -o heatmap_mc10/
Generate a sample-sorted OTU heatmap:
If you would like to sort the heatmap by Sample IDs then you should supply the mapping file, as follows:
make_otu_heatmap_html.py -i otu_table.biom -o heatmap_sample_sorted -m Fasting_Map.txt
Generate a sample and OTU-sorted OTU heatmap:
If you would like to sort the heatmap by Sample IDs and the tips in the tree, you can supply a tree as follows:
make_otu_heatmap_html.py -i otu_table.biom -o heatmap_sample_otu_sorted -m Fasting_Map.txt -t rep_set.tre