@@ -342,7 +343,6 @@ int PreClusterCommand::execute(){
}else {
if (processors != 1) { m->mothurOut("When using running without group information mothur can only use 1 processor, continuing."); m->mothurOutEndLine(); processors = 1; }
- if (namefile != "") { readNameFile(); }
//reads fasta file and return number of seqs
int numSeqs = readFASTA(); //fills alignSeqs and makes all seqs active
@@ -679,7 +679,9 @@ int PreClusterCommand::process(string newMapFile){
if (alignSeqs[j].active) { //this sequence has not been merged yet
//are you within "diff" bases
- int mismatch = calcMisMatches(alignSeqs[i].seq.getAligned(), alignSeqs[j].seq.getAligned());
@@ -813,7 +821,6 @@ int PreClusterCommand::loadSeqs(map<string, string>& thisName, vector<Sequence>&
try {
set<int> lengths;
alignSeqs.clear();
- map<string, string>::iterator it;
bool error = false;
map<string, int> thisCount;
if (countfile != "") { thisCount = cparser->getCountTable(group); }
@@ -823,7 +830,7 @@ int PreClusterCommand::loadSeqs(map<string, string>& thisName, vector<Sequence>&
if (m->control_pressed) { return0; }
if (namefile != "") {
- it = thisName.find(thisSeqs[i].getName());
+ map<string, string>::iterator it = thisName.find(thisSeqs[i].getName());
//should never be true since parser checks for this
if (it == thisName.end()) { m->mothurOut(thisSeqs[i].getName() + " is not in your names file, please correct."); m->mothurOutEndLine(); error = true; }
@@ -853,16 +860,16 @@ int PreClusterCommand::loadSeqs(map<string, string>& thisName, vector<Sequence>&
}
}
- if (lengths.size() > 1) { method = "unaligned"; }
0 comments on commit
278f690