renamed files in dynamut for consistency
This commit is contained in:
parent
9a0e98eb24
commit
cfdd18086a
2 changed files with 0 additions and 0 deletions
41
dynamut/run_get_results_dynamut.py
Normal file
41
dynamut/run_get_results_dynamut.py
Normal file
|
@ -0,0 +1,41 @@
|
|||
#!/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 get_results import *
|
||||
########################################################################
|
||||
# variables
|
||||
my_host = 'http://biosig.unimelb.edu.au'
|
||||
# Needed if things try to block the 'requests' user agent
|
||||
#headers = {"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"}
|
||||
|
||||
# TODO: add cmd line args
|
||||
#gene = 'gid'
|
||||
drug = 'streptomycin'
|
||||
datadir = homedir + '/git/Data'
|
||||
indir = datadir + '/' + drug + '/input'
|
||||
outdir = datadir + '/' + drug + '/output'
|
||||
|
||||
# batch 1: 00.txt
|
||||
my_url_file = outdir + '/dynamut_temp/dynamut_result_url_gid_b1.txt'
|
||||
my_suffix = 'gid_b1'
|
||||
|
||||
#==========================
|
||||
# CALL: get_results()
|
||||
# Data: gid+streptomycin
|
||||
#==========================
|
||||
print(my_url_file, 'suffix:', my_suffix)
|
||||
|
||||
get_results(url_file = my_url_file
|
||||
, host_url = my_host
|
||||
, output_dir = outdir
|
||||
, outfile_suffix = my_suffix)
|
||||
|
||||
########################################################################
|
Loading…
Add table
Add a link
Reference in a new issue