]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.h
finished cluster.split adding classify method.
[mothur.git] / mothur.h
index f101d1f808fdb22d0fac7795dcc6388be6dacaf2..5d12977383c4d2eb0457cc88190f078a98a5755e 100644 (file)
--- a/mothur.h
+++ b/mothur.h
@@ -254,6 +254,13 @@ inline float roundDist(float dist, int precision){
        
        return int(dist * precision + 0.5)/float(precision);
        
+}
+/***********************************************************************/
+
+inline float ceilDist(float dist, int precision){
+       
+       return int(ceil(dist * precision))/float(precision);
+       
 }
 
 /***********************************************************************/
@@ -487,7 +494,7 @@ inline string getFullPathName(string fileName){
                        }       
                #else
                        if (path.find("~") != -1) { //go to home directory
-                               string homeDir = getenv ("HOME");
+                               string homeDir = getenv ("HOMEPATH");
                                newFileName = homeDir + fileName.substr(fileName.find("~")+1);
                                return newFileName;
                        }else { //find path