X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=errorchecking.cpp;h=b9b3100b20f6b840f5f296964a7dc6f8aefd5d3d;hb=485c02be0cdcd06ce08dd58d551a525b6a1b47c5;hp=cb2dce42fbf4f40e4c5e2a5107a6e1d33c1b89c7;hpb=25cde7ff05bbe741da1712f2c740e0bc8706e523;p=mothur.git diff --git a/errorchecking.cpp b/errorchecking.cpp index cb2dce4..b9b3100 100644 --- a/errorchecking.cpp +++ b/errorchecking.cpp @@ -218,6 +218,12 @@ bool ErrorCheck::checkInput(string input) { else if (globaldata->getGroupFile() == "") { cout << "You must read a list and a group, or a shared before you can use the collect.shared, rarefaction.shared or summary.shared commands." << endl; return false; } } } + + if (commandName == "heatmap"){ + if ((globaldata->getListFile() == "") && (globaldata->getSharedFile() == "")) { + cout << "You must read a list, or a list and a group, or a shared before you can use the heatmap command." << endl; return false; + } + } return errorFree; }