Commit 49dac337 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[cmd] Rename functions; fix doc

parent 7c731925
......@@ -135,7 +135,7 @@ def json_2_interaction_graph(args):
@check_output_dir
def solutions_2_common_graph(args):
def queries_2_common_graph(args):
"""Create a GraphML formated file containing a unique representation of **all**
trajectories corresponding to all solutions in each complete MAC files
(*mac_complete files).
......@@ -215,7 +215,7 @@ def model_info(args):
def model_graph(args):
"""Information about the graph based on the model.
Get centralities (degree, in_degree, out_degree, closeness, betweenness).
Get centralities (degree).
Forge a GraphML file.
"""
......@@ -469,8 +469,8 @@ def main():
# Model file (xml : cadbiom language)
# Solution file (mac_complete)
parser_trajectories = subparsers.add_parser(
'solutions_2_common_graph',
help=solutions_2_common_graph.__doc__,
'queries_2_common_graph',
help=queries_2_common_graph.__doc__,
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser_trajectories.add_argument('model_file',
help="bcx model file.")
......@@ -480,7 +480,7 @@ def main():
parser_trajectories.add_argument('--output', action=ReadableDir,
nargs='?', default='graphs/',
help="Output directory for GraphML files.")
parser_trajectories.set_defaults(func=solutions_2_common_graph)
parser_trajectories.set_defaults(func=queries_2_common_graph)
# subparser: Create a matrix of occurrences counting entities in the solutions.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment