]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.h
added mantel command
[mothur.git] / mothur.h
index b0ad51e6736159e738d83d08a418f6cdecaac767..6e5833f7032aafba146f8b92cd30bacc149ab931 100644 (file)
--- a/mothur.h
+++ b/mothur.h
@@ -124,6 +124,23 @@ struct distlinePair {
        int end;
        
 };
+/***************************************************************/
+struct spearmanRank {
+       string name;
+       float score;
+       
+       spearmanRank(string n, float s) : name(n), score(s) {}
+};
+//********************************************************************************************************************
+//sorts highest to lowest
+inline bool compareSpearman(spearmanRank left, spearmanRank right){
+       return (left.score > right.score);      
+} 
+//********************************************************************************************************************
+//sorts lowest to highest
+inline bool compareSpearmanReverse(spearmanRank left, spearmanRank right){
+       return (left.score < right.score);      
+} 
 /************************************************************/
 //sorts lowest to highest
 inline bool compareDistLinePairs(distlinePair left, distlinePair right){