From: Diane Trout Date: Wed, 4 Oct 2006 21:59:09 +0000 (+0000) Subject: add --motifs X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=commitdiff_plain;h=a9c45b2008cb3cabf99730fe764c63d185b4b14d add --motifs ticket:143 this patch allows one to specify a motifs file to annotate an analysis with. --- 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; }