Description Usage Arguments Details Value Author(s) References
MEM_RMSD calculates a normalized average RMSD score pairwise between populations given their MEM scores as input. This is meant to serve as a metric of similarity between populations.
The function calculates the sum of squares for all shared markers between two populations, then takes the square root of the average.
For "a" through n markers, the sum of squares is calculated as: sum of squares = (a2-a1)^2 + (b2-b1)^2 ...(n2-n1)^2
Root-mean-square distance (RMSD) is calculated as: RMSD = sqrt(sum of squares/number of markers)
The RMSD values are then converted to percentages with the maximum RMSD in the matrix set as 100 percent, so that the final RMSD score is the percent of the maximum RMSD.
Percent_max_RMSD = 100-RMSD/max_RMSD*100
The function then outputs a clustered heatmap of Percent_max_RMSD values and the matrix of numerical values used to build the heatmap.
1 |
data |
The data input to MEM_RMSD can be either 1) a matrix of values, where populations are in rows and their MEM scores are in columns, 2) the list of matrices output by |
format |
Default is NULL. When |
newWindow.heatmaps |
If |
output.matrix |
If |
If you are calculating MEM_RMSD
on population files, populations do not have to include all of the same markers. The function will determine which markers each pair of populations has in common and will use those common markers to calculate RMSD. If the populations have no markers in common, the function will terminate with an error. Note that population names must match exactly between files in order for them to be considered the same.
RMSD_vals |
Matrix of the calculated pairwise percent max RMSD scores |
RMSD heatmap |
Hierarchically clustered heatmap of RMSD_vals |
Kirsten Diggins
Diggins et al., Nature Methods, 2017
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.