dynamut scripts and minor change dir for rd_df.py
This commit is contained in:
parent
21451789e7
commit
e3189df74b
3 changed files with 8 additions and 10 deletions
|
@ -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"]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -26,7 +26,7 @@ homedir = os.path.expanduser('~')
|
|||
|
||||
# set working dir
|
||||
os.getcwd()
|
||||
os.chdir(homedir + '/git/LSHTM_analysis/meta_data_analysis')
|
||||
os.chdir(homedir + '/git/LSHTM_analysis/scripts')
|
||||
os.getcwd()
|
||||
#=======================================================================
|
||||
#%% command line args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue