Permalink
Browse files
Fixing bugs for Windows compile
- Loading branch information...
|
|
@@ -122,14 +122,15 @@ static DWORD WINAPI MyPerseusThreadFunction(LPVOID lpParam){ |
|
|
//parse fasta and name file by group
|
|
|
SequenceParser* parser;
|
|
|
SequenceCountParser* cparser;
|
|
|
+ vector<string> temp;
|
|
|
if (pDataArray->hasCount) {
|
|
|
CountTable* ct = new CountTable();
|
|
|
ct->readTable(pDataArray->namefile, true, false);
|
|
|
- cparser = new SequenceCountParser(pDataArray->fastafile, *ct);
|
|
|
+ cparser = new SequenceCountParser(pDataArray->fastafile, *ct, temp);
|
|
|
delete ct;
|
|
|
}else {
|
|
|
- if (pDataArray->namefile != "") { parser = new SequenceParser(pDataArray->groupfile, pDataArray->fastafile, pDataArray->namefile); }
|
|
|
- else { parser = new SequenceParser(pDataArray->groupfile, pDataArray->fastafile); }
|
|
|
+ if (pDataArray->namefile != "") { parser = new SequenceParser(pDataArray->groupfile, pDataArray->fastafile, pDataArray->namefile, temp); }
|
|
|
+ else { parser = new SequenceParser(pDataArray->groupfile, pDataArray->fastafile, temp); }
|
|
|
}
|
|
|
|
|
|
int totalSeqs = 0;
|
|
|
|
|
|
@@ -165,14 +165,15 @@ static DWORD WINAPI MyUchimeThreadFunction(LPVOID lpParam){ |
|
|
//parse fasta and name file by group
|
|
|
SequenceParser* parser;
|
|
|
SequenceCountParser* cparser;
|
|
|
+ vector<string> temp;
|
|
|
if (pDataArray->hasCount) {
|
|
|
CountTable* ct = new CountTable();
|
|
|
ct->readTable(pDataArray->namefile, true, false);
|
|
|
- cparser = new SequenceCountParser(pDataArray->fastafile, *ct);
|
|
|
+ cparser = new SequenceCountParser(pDataArray->fastafile, *ct, temp);
|
|
|
delete ct;
|
|
|
}else {
|
|
|
- if (pDataArray->namefile != "") { parser = new SequenceParser(pDataArray->groupfile, pDataArray->fastafile, pDataArray->namefile); }
|
|
|
- else { parser = new SequenceParser(pDataArray->groupfile, pDataArray->fastafile); }
|
|
|
+ if (pDataArray->namefile != "") { parser = new SequenceParser(pDataArray->groupfile, pDataArray->fastafile, pDataArray->namefile, temp); }
|
|
|
+ else { parser = new SequenceParser(pDataArray->groupfile, pDataArray->fastafile, temp); }
|
|
|
}
|
|
|
|
|
|
int totalSeqs = 0;
|
|
|
|
|
|
@@ -1383,7 +1383,7 @@ int SffInfoCommand::findGroup(Header header, seqRead read, int& barcode, int& pr |
|
|
int currentSeqsDiffs = 0;
|
|
|
|
|
|
string seq = read.bases;
|
|
|
-
|
|
|
+ cout << header.clipQualLeft << endl;
|
|
|
if (trim) {
|
|
|
if(header.clipQualRight < header.clipQualLeft){
|
|
|
if (header.clipQualRight == 0) { //don't trim right
|
|
|
|
|
|
@@ -103,7 +103,8 @@ static DWORD WINAPI MyShhhSeqsThreadFunction(LPVOID lpParam){ |
|
|
try {
|
|
|
|
|
|
//parse fasta and name file by group
|
|
|
- SequenceParser parser(pDataArray->groupfile, pDataArray->fastafile, pDataArray->namefile);
|
|
|
+ vector<string> temp;
|
|
|
+ SequenceParser parser(pDataArray->groupfile, pDataArray->fastafile, pDataArray->namefile, temp);
|
|
|
|
|
|
//precluster each group
|
|
|
for (int k = pDataArray->start; k < pDataArray->end; k++) {
|
|
|
|
|
|
@@ -62,7 +62,7 @@ string VsearchFileParser::getVsearchFile() { |
|
|
if (fastafile == "") { m->mothurOut("[ERROR]: no fasta file given, cannot continue.\n"); m->control_pressed = true; }
|
|
|
|
|
|
//Run unique.seqs on the data if a name or count file is not given
|
|
|
- if ((namefile == "") && (countfile == "")) { countfile = getNamesFile(fastafile); }
|
|
|
+ if ((namefile == "") && (countfile == "")) { getNamesFile(fastafile); }
|
|
|
else if (namefile != "") { counts = m->readNames(namefile); }
|
|
|
|
|
|
if (countfile != "") { CountTable countTable; countTable.readTable(countfile, false, false); counts = countTable.getNameMap(); }
|
|
|
@@ -124,7 +124,6 @@ string VsearchFileParser::createVsearchFasta(string inputFile){ |
|
|
|
|
|
string VsearchFileParser::getNamesFile(string& inputFile){
|
|
|
try {
|
|
|
- string nameFile = "";
|
|
|
|
|
|
m->mothurOutEndLine(); m->mothurOut("No namesfile given, running unique.seqs command to generate one."); m->mothurOutEndLine(); m->mothurOutEndLine();
|
|
|
|
|
|
@@ -146,7 +145,7 @@ string VsearchFileParser::getNamesFile(string& inputFile){ |
|
|
countfile = filenames["count"][0];
|
|
|
fastafile = filenames["fasta"][0];
|
|
|
|
|
|
- return nameFile;
|
|
|
+ return countfile;
|
|
|
}
|
|
|
catch(exception& e) {
|
|
|
m->errorOut(e, "VsearchFileParser", "getNamesFile");
|
|
|
|
0 comments on commit
933adb1