News and Announcements » |
Description:
Create a figure representing average distances between samples, broken down by categories. I call it a ‘categorized distance scatterplot’. See script usage for more details. The mapping file specifies the relevant data - if you have e.g. ‘N/A’ values or samples you don’t want included, first use filter_samples_from_otu_table.py to remove unwanted samples from the mapping file, and thus the analysis. Note that the resulting plot will include only samples in both the mapping file AND the distance matrix.
Usage: categorized_dist_scatterplot.py [options]
Input Arguments:
Note
[REQUIRED]
[OPTIONAL]
Output:
a figure and the text dat for that figure
Canonical Example:
Split samples by country. Within each country compare each child to all adults. Plot the average distance from that child to all adults, vs. the age of that child
python categorized_dist_scatterplot.py -m map.txt -d unifrac_distance.txt -c Country -p AgeCategory:Child -s AgeCategory:Adult -a AgeYears -o fig1.png
Example 2:
Same as above, but compares Child with all other categories (e.g.: NA, Infant, etc.)
python categorized_dist_scatterplot.py -m map.txt -d unifrac_distance.txt -c Country -p AgeCategory:Child -a AgeYears -o fig1.svg