Commit 1d66c04c authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

Fix typos; module doc

parent 7aef0f71
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
# IRISA Campus de Beaulieu # IRISA Campus de Beaulieu
# 35042 RENNES Cedex, FRANCE # 35042 RENNES Cedex, FRANCE
""" """
This module groups functions directly related to the parsing and the management This module groups functions directly related to the design of an interaction
of the files generated by the solver of Cadbiom. weighted graph based on the search of molecules of interest.
Entry point: :meth:`~cadbiom_cmd.interaction_graph.json_2_interaction_graph`.
""" """
from __future__ import unicode_literals from __future__ import unicode_literals
from __future__ import print_function from __future__ import print_function
...@@ -45,6 +45,8 @@ import cadbiom.commons as cm ...@@ -45,6 +45,8 @@ import cadbiom.commons as cm
LOGGER = cm.logger() LOGGER = cm.logger()
## Handle *.json files #########################################################
def get_solutions_and_related_places_from_file(file_path): def get_solutions_and_related_places_from_file(file_path):
"""Get frontier places and other places involved in transitions. """Get frontier places and other places involved in transitions.
...@@ -144,6 +146,7 @@ def get_solutions_and_related_places(path): ...@@ -144,6 +146,7 @@ def get_solutions_and_related_places(path):
LOGGER.info("Files processed: %s", file_number) LOGGER.info("Files processed: %s", file_number)
## Build the graph ### #########################################################
def filter_trajectories(trajectories, molecules_of_interest): def filter_trajectories(trajectories, molecules_of_interest):
"""Get solutions and count frontier places related to the given molecules """Get solutions and count frontier places related to the given molecules
...@@ -358,7 +361,7 @@ def build_graph(output_dir, all_genes, all_stimuli, unique_genes_interactions, ...@@ -358,7 +361,7 @@ def build_graph(output_dir, all_genes, all_stimuli, unique_genes_interactions,
unique_stimulis_interactions, unique_stimulis_interactions,
unique_genes_stimuli_interactions, unique_genes_stimuli_interactions,
unique_molecule_stimuli_interactions): unique_molecule_stimuli_interactions):
"""Make an interaction weighted graph based on the searched molecule of interest """Make an interaction weighted graph based on the search of molecules of interest
:Edges: :Edges:
......
Supports Markdown
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