| 23 | { |
| 24 | |
| 25 | MascotRemoteQuery::MascotRemoteQuery(QObject* parent) : |
| 26 | QObject(parent), |
| 27 | DefaultParamHandler("MascotRemoteQuery"), |
| 28 | manager_(nullptr) |
| 29 | { |
| 30 | // server specifications |
| 31 | defaults_.setValue("hostname", "", "Address of the host where Mascot listens, e.g. 'mascot-server' or '127.0.0.1'"); |
| 32 | defaults_.setValue("host_port", 80, "Port where the Mascot server listens, 80 should be a good guess"); |
| 33 | defaults_.setMinInt("host_port", 0); |
| 34 | defaults_.setValue("server_path", "mascot", "Path on the server where Mascot server listens, 'mascot' should be a good guess"); |
| 35 | defaults_.setValue("timeout", 1500, "Timeout in seconds, after which the query is declared as failed." |
| 36 | "This is NOT the whole time the search takes, but the time in between two progress steps. Some Mascot servers freeze during this (unstable network etc) and idle forever" |
| 37 | ", the connection is killed. Set this to 0 to disable timeout!"); |
| 38 | defaults_.setMinInt("timeout", 0); |
| 39 | defaults_.setValue("boundary", "GZWgAaYKjHFeUaLOLEIOMq", "Boundary for the MIME section", {"advanced"}); |
| 40 | |
| 41 | // proxy settings |
| 42 | defaults_.setValue("use_proxy", "false", "Flag which enables the proxy usage for the HTTP requests, please specify at least 'proxy_host' and 'proxy_port'", {"advanced"}); |
| 43 | defaults_.setValidStrings("use_proxy", {"true","false"}); |
| 44 | defaults_.setValue("proxy_host", "", "Host where the proxy server runs on", {"advanced"}); |
| 45 | defaults_.setValue("proxy_port", 0, "Port where the proxy server listens", {"advanced"}); |
| 46 | defaults_.setMinInt("proxy_port", 0); |
| 47 | defaults_.setValue("proxy_username", "", "Login name for the proxy server, if needed", {"advanced"}); |
| 48 | defaults_.setValue("proxy_password", "", "Login password for the proxy server, if needed", {"advanced"}); |
| 49 | |
| 50 | // login for Mascot security |
| 51 | defaults_.setValue("login", "false", "Flag which should be set 'true' if Mascot security is enabled; also set 'username' and 'password' then."); |
| 52 | defaults_.setValidStrings("login", {"true","false"}); |
| 53 | defaults_.setValue("username", "", "Name of the user if login is used (Mascot security must be enabled!)"); |
| 54 | defaults_.setValue("password", "", "Password of the user if login is used (Mascot security must be enabled!)"); |
| 55 | defaults_.setValue("use_ssl", "false", "Flag indicating whether you want to send requests to an HTTPS server or not (HTTP). Requires OpenSSL to be installed (see openssl.org)"); |
| 56 | defaults_.setValidStrings("use_ssl", {"true","false"}); |
| 57 | |
| 58 | // Mascot export options |
| 59 | defaults_.setValue("export_params", "_ignoreionsscorebelow=0&_sigthreshold=0.99&_showsubsets=1&show_same_sets=1&report=0&percolate=0&query_master=0", "Adjustable export parameters (passed to Mascot's 'export_dat_2.pl' script). Generally only parameters that control which hits to export are safe to adjust/add. Many settings that govern what types of information to include are required by OpenMS and cannot be changed. Note that setting 'query_master' to 1 may lead to incorrect protein references for peptides.", {"advanced"}); |
| 60 | defaults_.setValue("skip_export", "false", "For use with an external Mascot Percolator (via GenericWrapper): Run the Mascot search, but do not export the results. The output file produced by MascotAdapterOnline will contain only the Mascot search number.", {"advanced"}); |
| 61 | defaults_.setValidStrings("skip_export", {"true","false"}); |
| 62 | defaults_.setValue("batch_size", 50000, "Number of spectra processed in one batch by Mascot (default 50000)", {"advanced"}); |
| 63 | defaults_.setMinInt("batch_size", 0); |
| 64 | defaultsToParam_(); |
| 65 | } |
| 66 | |
| 67 | MascotRemoteQuery::~MascotRemoteQuery() |
| 68 | { |
nothing calls this directly
no test coverage detected