Skip to content

Commit

Permalink
Fixes trim.seqs bug if nothing is scrapped
Browse files Browse the repository at this point in the history
  • Loading branch information
mothur-westcott committed Jan 10, 2022
1 parent bfc2071 commit c2633a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Mothur.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3960,7 +3960,7 @@
GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_DYNAMIC_NO_PIC = NO;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_OPTIMIZATION_LEVEL = 3;
GCC_PREPROCESSOR_DEFINITIONS = (
"MOTHUR_FILES=\"\\\"/Users/swestcott/Desktop/release/;/Users/swestcott/Desktop/mothurbugs/\\\"\"",
"VERSION=\"\\\"1.46.0\\\"\"",
Expand Down Expand Up @@ -4012,7 +4012,7 @@
"FRAMEWORK_SEARCH_PATHS[arch=*]" = "${SRCROOT}/mothur_resources_10.14/libs";
GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_OPTIMIZATION_LEVEL = 3;
GCC_PREPROCESSOR_DEFINITIONS = (
"MOTHUR_FILES=\"\\\"/Users/swestcott/Desktop/release\\\"\"",
"VERSION=\"\\\"1.46.0\\\"\"",
Expand Down
4 changes: 2 additions & 2 deletions source/commands/trimseqscommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ int TrimSeqsCommand::processNamesCountFiles(string trimFasta, set<string> badNam

CountTable newCt;

if (badNames.size() != 0) { newCt.addGroup("scrap"); }
if (badNames.size() != 0) { newCt.addGroup("scrap"); }

for (map<string, int>::iterator itCount = groupCounts.begin(); itCount != groupCounts.end(); itCount++) { newCt.addGroup(itCount->first); }

Expand All @@ -980,7 +980,7 @@ int TrimSeqsCommand::processNamesCountFiles(string trimFasta, set<string> badNam

map<string, int>::iterator itCount = nameCount.find(seqName);
if (itCount != nameCount.end()) {
vector<int> counts; counts.resize(groupCounts.size()+1, 0);
vector<int> counts; counts.resize(count, 0);
counts[groupIndexes[seqGroup]] = itCount->second;
newCt.push_back(seqName, counts);
}else { m->mothurOut("[ERROR]: missing count info for " + seqName + "\n"); m->setControl_pressed(true); }
Expand Down

0 comments on commit c2633a6

Please sign in to comment.