LSHTM_analysis/dynamut/run_submit_dynamut.py

60 lines
1.9 KiB
Python
Executable file

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 19 14:33:51 2020
@author: tanu
"""
#%% load packages
import os
homedir = os.path.expanduser('~')
os.chdir (homedir + '/git/LSHTM_analysis/dynamut')
from submit_dynamut import *
########################################################################
# variables
my_host = 'http://biosig.unimelb.edu.au'
my_prediction_url = f"{my_host}/dynamut/prediction_list"
print(my_prediction_url)
# TODO: add cmd line args
#gene = 'gid'
drug = 'streptomycin'
datadir = homedir + '/git/Data/'
indir = datadir + drug + '/input/'
outdir = datadir + drug + '/output/'
outdir_dynamut = outdir + 'dynamut_results/'
my_chain = 'A'
my_email = 'tanushree.tunstall@lshtm.ac.uk'
my_pdb_file = indir + 'gid_complex.pdb'
#==============================================================================
# batch 7: 07.txt, # RAN: 22 Feb 09:26
#my_mutation_list = outdir + '/snp_batches/50/snp_batch_07.txt'
#my_suffix = 'gid_b7'
# batch 8: 08.txt, # RAN: 22 Feb 09:26
#my_mutation_list = outdir + '/snp_batches/50/snp_batch_08.txt'
#my_suffix = 'gid_b8'
# batch 9 and 10 failed!
# bissecting: b10, split into 5 (1st failed, 2nd worked, but then comb rest)
my_mutation_list = outdir + 'snp_batches/50/b9_b10_bissect/b10_21.txt'
my_suffix = 'gid_b10_21'
#==============================================================================
#==========================
# CALL: submit_dynamut()
# Data: gid+streptomycin
#==========================
submit_dynamut(host_url = my_host
, pdb_file = my_pdb_file
, mutation_list = my_mutation_list
, chain = my_chain
, email_address = my_email
, prediction_url = my_prediction_url
, output_dir = outdir_dynamut
, outfile_suffix = my_suffix)
#%%#####################################################################