From a9c45b2008cb3cabf99730fe764c63d185b4b14d Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Wed, 4 Oct 2006 21:59:09 +0000 Subject: [PATCH] add --motifs ticket:143 this patch allows one to specify a motifs file to annotate an analysis with. --- alg/parse_options.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/alg/parse_options.cpp b/alg/parse_options.cpp index 489fbfe..b0d1062 100644 --- a/alg/parse_options.cpp +++ b/alg/parse_options.cpp @@ -25,6 +25,8 @@ void initialize_mussa(MussaOptions& opts, int argc, char **argv) "run an analysis defined by the mussa parameter file") ("view-analysis", po::value(), "load a previously run analysis") + ("motifs", po::value(), + "annotate analysis with motifs from this file") ("no-gui", "terminate without running an analysis") ("python", "launch as a python interpreter") ; @@ -54,6 +56,9 @@ void initialize_mussa(MussaOptions& opts, int argc, char **argv) else if (vm.count("view-analysis")) { opts.analysis->load( vm["view-analysis"].as< std::string >() ); } + if (vm.count("motifs") and opts.analysis) { + opts.analysis->load_motifs( vm["motifs"].as< std::string >() ); + } if (vm.count("no-gui")) { opts.useGUI=false; } -- 2.30.2