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
65e3c86b
Commit
65e3c86b
authored
Oct 28, 2018
by
VIGNET Pierre
Browse files
Proper assert when a molecule of interest was not found
parent
1aef904c
Changes
1
Hide whitespace changes
Inline
Side-by-side
command_line/cadbiom_cmd/interaction_graph.py
View file @
65e3c86b
...
...
@@ -215,6 +215,8 @@ def filter_trajectories(trajectories, molecules_of_interest):
filtered_macs
=
tuple
(
sol
for
sol
,
trajectory_places
in
trajectories
if
entity_is_in_trajectory
(
sol
,
trajectory_places
))
assert
filtered_macs
,
"No molecule of interest was found."
return
filtered_macs
,
binary_interactions
...
...
@@ -342,7 +344,8 @@ def build_interactions(filtered_macs, binary_interactions):
for
data
in
binary_interactions
.
iteritems
())
# warning: marchera pas si la molec of interest est dans les conditions
# et non dans les places des trajectoires...
molecule_stimuli_interactions
=
Counter
(
next
(
g
))
# => Comme si la molecule n'était pas trouvée
molecule_stimuli_interactions
=
Counter
()
[
molecule_stimuli_interactions
.
update
(
f_bin
)
for
f_bin
in
g
]
return
all_genes
,
all_stimuli
,
genes_interactions
,
\
...
...
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