Create a relative abundance bar chart at all main taxonomic ranks, along with optional grouping of bars based on sample metadata.
This method creates a relative abundance bar plot for taxa and groups based on metadata criteria. A 100% bar is created for each sample in the matrix, and taxa are represented by different colored blocks in the bars showing their abundance in percentage. The percentage is obtained by adding all OTU counts in a sample that share the same taxa and dividing by the total sample count. This will allow users to better visualize their data. Further information is provided in the points below.
1) AmpliconMatrix: This takes in an AmpliconMatrix object as input, expecting raw count data.
2) Cutoff: When there are many different taxa, the bar plot will have many tiny blocks in the bars that might make it hard to see them all. This cutoff feature allows the user to specify a percentage that for any taxon that falls under it for each sample, it will be place in a category named Other . The default is 0.005 or 0.5%.
3) Metadata AttributeMapping & Meta Group: This allows the user to pick metadata to organize the bar plot. This puts samples that share the same meta group side by side with an extra space between the other meta groups. This allows the user to better compare similar samples from one another. The user just needs to select the Metadata object to use and select a field from that object to do the metadata grouping by.
Uses plotly version 4.5.2 for plotting.
Module Commit: da7a8968bb355e2abfc531001474e3b8104eb50f