Skip to content

Commit

Permalink
Fixes bug with remove.groups phylip file option
Browse files Browse the repository at this point in the history
  • Loading branch information
mothur-westcott committed Sep 21, 2021
1 parent 5ac44ae commit 5d74e8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 2 additions & 4 deletions source/commands/getgroupscommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,7 @@ void GetGroupsCommand::readPhylip(){
variables["[extension]"] = util.getExtension(phylipfile);
string outputFileName = getOutputFileName("phylip", variables);

ifstream in;
util.openInputFile(phylipfile, in);
ifstream in; util.openInputFile(phylipfile, in);

float distance;
int square, nseqs; square = 0;
Expand Down Expand Up @@ -873,8 +872,7 @@ void GetGroupsCommand::readPhylip(){
if (m->getControl_pressed()) { return; }

//read through file only printing rows and columns of seqs in names
ifstream inPhylip;
util.openInputFile(phylipfile, inPhylip);
ifstream inPhylip; util.openInputFile(phylipfile, inPhylip);

inPhylip >> numTest;

Expand Down
5 changes: 3 additions & 2 deletions source/commands/removegroupscommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,8 @@ void RemoveGroupsCommand::readDesign(){

out.close();

names.clear(); names = util.mothurConvert(Groups);

int removedCount = allGroups.size() - numGroupsFound;

if (wroteSomething == false) { m->mothurOut("Your file contains only groups from the groups you wish to remove.\n"); }
Expand Down Expand Up @@ -862,8 +864,7 @@ void RemoveGroupsCommand::readPhylip(){
variables["[extension]"] = util.getExtension(phylipfile);
string outputFileName = getOutputFileName("phylip", variables);

ifstream in;
util.openInputFile(phylipfile, in);
ifstream in; util.openInputFile(phylipfile, in);

float distance;
int square, nseqs; square = 0;
Expand Down

0 comments on commit 5d74e8e

Please sign in to comment.