dynamut scripts and minor change dir for rd_df.py

This commit is contained in:
Tanushree Tunstall 2021-02-10 15:40:33 +00:00
parent 21451789e7
commit e3189df74b
3 changed files with 8 additions and 10 deletions

View file

@ -5,8 +5,6 @@ Created on Wed Aug 19 14:33:51 2020
@author: tanu
"""
#%% load packages
import os,sys
import subprocess
@ -20,15 +18,15 @@ from pandas.api.types import is_string_dtype
from pandas.api.types import is_numeric_dtype
#%%============================================================================
#streptomycin/gid_complex.pdb
host_dynamut = 'http://biosig.unimelb.edu.au/dynamut'
host = 'http://biosig.unimelb.edu.au/dynamut'
pred_dynamut_batch = '/results_prediction/161287964015'
result_id = re.search( r"([0-9]+)$", pred_dynamut).group(0)
batch_result_url = host_dynamut + pred_dynamut_batch
batch_result_url = host + pred_dynamut_batch
mut = 'S2C'
single_url = host_dynamut + '/single_results/' + str(result_id)
single_result_url = host_dynamut + '/single_results/' + str(result_id) + '/' + mut
single_url = host + '/single_results/' + str(result_id)
single_result_url = host + '/single_results/' + str(result_id) + '/' + mut
print(single_result_url)
#%%============================================================================
@ -62,7 +60,7 @@ print(results_df)
#%% for loop
single_url = host_dynamut + '/single_results/' + str(result_id)
single_url = host + '/single_results/' + str(result_id)
muts = ["S2C", "S2F"]

View file

@ -30,7 +30,7 @@ chunks = [all_muts[i:i+n] for i in range(0,all_muts.shape[0],n)]
muts_list = all_muts[0].values.tolist()
host_dynamut = 'http://biosig.unimelb.edu.au/dynamut'
host = 'http://biosig.unimelb.edu.au/dynamut'
mut_prediction = '/prediction'
submit_url = host_dynamut + mut_prediction
submit_url = host + mut_prediction