X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=splitgroupscommand.cpp;h=6dd6206084fbe7ea81b9ad254ac2aedf28031407;hp=220c7cc680b1729880001c5bf94ad1fc284a85e9;hb=7bf9a81bba76538ecaf351ae208de3da4bf1b6dd;hpb=220dc345e493cddc569521111ce32ac4d965ab7f diff --git a/splitgroupscommand.cpp b/splitgroupscommand.cpp index 220c7cc..6dd6206 100644 --- a/splitgroupscommand.cpp +++ b/splitgroupscommand.cpp @@ -126,6 +126,7 @@ SplitGroupCommand::SplitGroupCommand(string option) { namefile = validParameter.validFile(parameters, "name", true); if (namefile == "not open") { abort = true; } else if (namefile == "not found") { namefile = ""; } + else { m->setNameFile(namefile); } fastafile = validParameter.validFile(parameters, "fasta", true); if (fastafile == "not open") { abort = true; } @@ -133,7 +134,7 @@ SplitGroupCommand::SplitGroupCommand(string option) { fastafile = m->getFastaFile(); if (fastafile != "") { m->mothurOut("Using " + fastafile + " as input file for the fasta parameter."); m->mothurOutEndLine(); } else { m->mothurOut("You have no current fastafile and the fasta parameter is required."); m->mothurOutEndLine(); abort = true; } - } + }else { m->setFastaFile(fastafile); } groupfile = validParameter.validFile(parameters, "group", true); if (groupfile == "not open") { groupfile = ""; abort = true; } @@ -141,7 +142,7 @@ SplitGroupCommand::SplitGroupCommand(string option) { groupfile = m->getGroupFile(); if (groupfile != "") { m->mothurOut("Using " + groupfile + " as input file for the group parameter."); m->mothurOutEndLine(); } else { m->mothurOut("You have no current groupfile and the group parameter is required."); m->mothurOutEndLine(); abort = true; } - } + }else { m->setGroupFile(groupfile); } groups = validParameter.validFile(parameters, "groups", false); if (groups == "not found") { groups = ""; }