cutoff = "1.0";
}
- //set default value for cutoff
- if(commandName == "dist.seqs") { cutoff = "1.0"; }
+ //set default value for cutoff and phylip
+ if (commandName == "dist.seqs") { cutoff = "1.0"; phylipfile = "F"; }
string key, value;
//reads in parameters and values
if(key == "maxlength") { maxLength = value; }
if(key == "flip" ) { flip = value; }
if(key == "oligos" ) { oligoFile = value; }
- if(key == "forward" ) { forMismatch = value; }
- if(key == "reverse" ) { revMismatch = value; }
- if(key == "barcode" ) { barMismatch = value; }
if(key == "line") {//stores lines to be used in a vector
lines.clear();
if(key == "maxlength") { maxLength = value; }
if(key == "flip" ) { flip = value; }
if(key == "oligos" ) { oligoFile = value; }
- if(key == "forward" ) { forMismatch = value; }
- if(key == "reverse" ) { revMismatch = value; }
- if(key == "barcode" ) { barMismatch = value; }
if(key == "line") {//stores lines to be used in a vector
}
//set format for shared
- if((listfile != "") && (groupfile != "")) { format = "shared"; }
- if((phylipfile != "") && (groupfile != "")) { format = "matrix"; }
-
+ if ((listfile != "") && (groupfile != "")) { format = "shared"; }
+ if ((phylipfile != "") && (groupfile != "")) { format = "matrix"; }
+
+ //set default value for cutoff
+ if (commandName == "dist.seqs") { format = "fasta"; inputFileName = fastafile; fileroot = fastafile; }
+
//input defaults for calculators
if(commandName == "collect.single") {
string GlobalData::getMaxLength() { return maxLength; }
string GlobalData::getFlip() { return flip; }
string GlobalData::getOligosFile() { return oligoFile; }
-string GlobalData::getForwardMismatch() { return forMismatch; }
-string GlobalData::getReverseMismatch() { return revMismatch; }
-string GlobalData::getBarcodeMismatch() { return barMismatch; }
void GlobalData::setListFile(string file) { listfile = file; inputFileName = file; }
minLength = "-1";
maxLength = "-1";
flip = "0";
- forMismatch = "0";
- revMismatch = "0";
- barMismatch = "0";
oligoFile = "";
}
minLength = "-1";
maxLength = "-1";
flip = "0";
- forMismatch = "0";
- revMismatch = "0";
- barMismatch = "0";
oligoFile = "";
}