Commit c7512614 authored by Carlos GO's avatar Carlos GO
Browse files

use user pdb

parent fa84fb8b
......@@ -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
......
......@@ -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)
......
Markdown is supported
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