Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
c99a495a
Commit
c99a495a
authored
Oct 28, 2018
by
VIGNET Pierre
Browse files
Add doc build_interactions
parent
eb2ded38
Changes
1
Hide whitespace changes
Inline
Side-by-side
command_line/cadbiom_cmd/interaction_graph.py
View file @
c99a495a
...
...
@@ -221,13 +221,38 @@ def build_interactions(filtered_macs, binary_interactions):
PS: genes and stimulis are frontier places
:return:
all_genes: All genes in all the solutions
all_stimuli: All stimulis in all the solutions
genes_interactions: Interactions between genes in the same solution
stimulis_interactions: Interactions between stimuli in the same solution
genes_stimuli_interactions: Interactions between genes and stimulis in the same solution
filtered_binary_interactions: Interactions between molecules of interest and frontier places that are not genes in trajectories
:param filtered_macs: All solutions related to the molecules of interest.
.. code-block:: python
(("frontier_1", "frontier_2", "frontier_3"),)
:type filtered_macs: <tuple <tuple <str>>>
:param binary_interactions: A dictionary of related frontier places.
.. code-block:: python
# For molecules of interest "A" and "B"
{"A": {
"frontier_1": 1,
"frontier_2": 1,
},
"B": {
"frontier_3": 1,
},
}
:type binary_interactions: <dict <str>: <Counter <str>: <int>>>
:return: Various Counters of binary interactions:
* all_genes: All genes in all the solutions
* all_stimuli: All stimulis in all the solutions
* genes_interactions: Interactions between genes in the same solution
* stimulis_interactions: Interactions between stimuli in the same solution
* genes_stimuli_interactions: Interactions between genes and stimulis in
the same solution
* filtered_binary_interactions: Counter interactions between molecules of
interest and frontier places that are not genes in trajectories
:rtype: <set>, <set>, <Counter>, <Counter>, <Counter>, <Counter>
"""
genes_stimuli_interactions
=
Counter
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment