Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Carlos GO
RNAmigos_server
Commits
24835add
Commit
24835add
authored
Feb 19, 2021
by
Carlos GO
Browse files
result json
parent
977bf7ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
rnamigos_launcher.py
View file @
24835add
...
...
@@ -48,6 +48,18 @@ def launch(pdb_path, library_path, n_hits=30, run='rnamigos-ismb'):
return
hits
,
G
,
fp_pred
def
results_to_json
(
hits
,
G
,
fp_pred
):
""""
Write launcher outputs as a single JSON object.
"""
result_json
=
{}
result_json
[
'hits'
]
=
hits
result_json
[
'graph'
]
=
nx
.
node_link_data
(
G
)
result_json
[
'fingerprint'
]
=
list
(
fp_pred
)
return
result_json
if
__name__
==
"__main__"
:
launch
(
"hi"
,
None
)
pass
Write
Preview
Markdown
is supported
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