Permalink
Browse files

Forces abort for Windows vsearch method

  • Loading branch information...
1 parent 892dec0 commit a9fa52e630fa4b71eb9b2c15c5e98290c769a6e7 @mothur-westcott mothur-westcott committed Apr 5, 2016
Showing with 8 additions and 1 deletion.
  1. +4 −1 source/commands/clustercommand.cpp
  2. +4 −0 source/commands/clustersplitcommand.cpp
@@ -279,7 +279,10 @@ ClusterCommand::ClusterCommand(string option) {
if ((method == "agc") || (method == "dgc")) {
if (fastafile == "") { m->mothurOut("[ERROR]: You must provide a fasta file when using the agc or dgc clustering methods, aborting\n."); abort = true;}
}
-
+#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) || (__linux__) || (__unix__) || (__unix)
+#else
+ if ((method == "agc") || (method == "dgc")) { m->mothurOut("[ERROR]: The agc and dgc clustering methods are not available for Windows, aborting\n."); abort = true; }
+#endif
showabund = validParameter.validFile(parameters, "showabund", false);
if (showabund == "not found") { showabund = "T"; }
@@ -364,6 +364,10 @@ ClusterSplitCommand::ClusterSplitCommand(string option) {
if (fastafile == "") { m->mothurOut("[ERROR]: You must provide a fasta file when using the agc or dgc clustering methods, aborting\n."); abort = true;}
if (classic) { m->mothurOut("[ERROR]: You cannot use cluster.classic with the agc or dgc clustering methods, aborting\n."); abort = true; }
}
+ #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) || (__linux__) || (__unix__) || (__unix)
+ #else
+ if ((method == "agc") || (method == "dgc")) { m->mothurOut("[ERROR]: The agc and dgc clustering methods are not available for Windows, aborting\n."); abort = true; }
+ #endif
if ((splitmethod == "distance") || (splitmethod == "classify") || (splitmethod == "fasta")) { }
else { m->mothurOut("[ERROR]: " + splitmethod + " is not a valid splitting method. Valid splitting algorithms are distance, classify or fasta."); m->mothurOutEndLine(); abort = true; }

0 comments on commit a9fa52e

Please sign in to comment.