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
c7512614
Commit
c7512614
authored
Jun 17, 2020
by
Carlos GO
Browse files
use user pdb
parent
fa84fb8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
app.py
View file @
c7512614
...
...
@@ -79,10 +79,6 @@ def submitted():
os
.
makedirs
(
job_dir
)
#fasta takes priority
ss_in_file
=
False
if
'pdb'
in
request
.
files
:
try
:
f
=
request
.
files
[
'pdb'
]
...
...
@@ -91,7 +87,6 @@ def submitted():
f
.
save
(
save_path
)
pdb
=
save_path
print
(
"USING USER FASTA"
)
except
Exception
as
e
:
print
(
"FILE UPLOAD FAILED"
)
pass
...
...
rnamigos_launcher.py
View file @
c7512614
...
...
@@ -10,8 +10,8 @@ from fp2lig import *
def
launch
(
pdb_path
,
library_path
,
n_hits
=
30
,
run
=
'rnamigos-ismb'
):
#
G = get_graph(pdb_path)
G
=
nx
.
read_gpickle
(
os
.
path
.
join
(
"static"
,
"samples"
,
"1aju_arg.nx"
))
G
=
get_graph
(
pdb_path
)
#
G = nx.read_gpickle(os.path.join("static", "samples", "1aju_arg.nx"))
print
(
"LOADING MODEL"
)
run
=
'ismb-tune_0'
model
,
meta
=
load_model
(
run
)
...
...
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