News and Announcements » |
Description:
Nonmetric Multidimensional Scaling (NMDS) is commonly used to compare groups of samples based on phylogenetic or count-based distance metrics (see section on beta_diversity.py).
Usage: nmds.py [options]
Input Arguments:
Note
[REQUIRED]
[OPTIONAL]
Output:
The resulting output file consists of the NMDS axes (columns) for each sample (rows). Pairs of NMDS axes can then be graphed to view the relationships between samples. The bottom of the output file contains the stress of the ordination.
NMDS (Single File):
For this script, the user supplies a distance matrix (i.e. resulting file from beta_diversity.py), along with the output filename (e.g. beta_div_coords.txt), as follows:
nmds.py -i beta_div.txt -o beta_div_coords.txt
NMDS (Multiple Files):
The script also functions in batch mode if a folder is supplied as input (e.g. from beta_diversity.py run in batch). No other files should be present in the input folder - only the distance matrix files to be analyzed. This script operates on every distance matrix file in the input directory and creates a corresponding nmds results file in the output directory, e.g.:
nmds.py -i beta_div_weighted_unifrac/ -o beta_div_weighted_nmds_results/