X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=pcoacommand.cpp;fp=pcoacommand.cpp;h=02e165e978dc071ba19808139060866d7e41388c;hb=19fcbbdba99658f5eca244803280f9ee7f9f6607;hp=20e8e1be712765513c1f581b4e94536207f4f773;hpb=65b6a38d00b3a72021611211e7c25392022c69ed;p=mothur.git diff --git a/pcoacommand.cpp b/pcoacommand.cpp index 20e8e1b..02e165e 100644 --- a/pcoacommand.cpp +++ b/pcoacommand.cpp @@ -172,7 +172,7 @@ int PCOACommand::execute(){ output(fbase, names, G, d); - if (m->control_pressed) { for (int i = 0; i < outputNames.size(); i++) { remove(outputNames[i].c_str()); } return 0; } + if (m->control_pressed) { for (int i = 0; i < outputNames.size(); i++) { m->mothurRemove(outputNames[i]); } return 0; } if (metric) { @@ -180,13 +180,13 @@ int PCOACommand::execute(){ vector< vector > EuclidDists = linearCalc.calculateEuclidianDistance(G, i); //G is the pcoa file - if (m->control_pressed) { for (int i = 0; i < outputNames.size(); i++) { remove(outputNames[i].c_str()); } return 0; } + if (m->control_pressed) { for (int i = 0; i < outputNames.size(); i++) { m->mothurRemove(outputNames[i]); } return 0; } double corr = linearCalc.calcPearson(EuclidDists, D); //G is the pcoa file, D is the users distance matrix m->mothurOut("Rsq " + toString(i) + " axis: " + toString(corr * corr)); m->mothurOutEndLine(); - if (m->control_pressed) { for (int i = 0; i < outputNames.size(); i++) { remove(outputNames[i].c_str()); } return 0; } + if (m->control_pressed) { for (int i = 0; i < outputNames.size(); i++) { m->mothurRemove(outputNames[i]); } return 0; } } }