return int(dist * precision + 0.5)/float(precision);
+}
+/***********************************************************************/
+
+inline float ceilDist(float dist, int precision){
+
+ return int(ceil(dist * precision))/float(precision);
+
}
/***********************************************************************/
}
#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
return numSeqs;
}
+/***********************************************************************/
+inline void getNumSeqs(ifstream& file, int& numSeqs){
+
+ string input;
+ numSeqs = 0;
+ while(!file.eof()){
+ input = getline(file);
+ if (input.length() != 0) {
+ if(input[0] == '>'){ numSeqs++; }
+ }
+ }
+}
+
/***********************************************************************/
inline bool inVector(string member, vector<string> group){