36 lines
867 B
Python
Executable file
36 lines
867 B
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,sys
|
|
import subprocess
|
|
import argparse
|
|
import requests
|
|
import re
|
|
import time
|
|
from bs4 import BeautifulSoup
|
|
import pandas as pd
|
|
import numpy as np
|
|
from pandas.api.types import is_string_dtype
|
|
from pandas.api.types import is_numeric_dtype
|
|
#%%============================================================================
|
|
# read mutation file
|
|
|
|
all_muts = pd.read_csv("/home/tanu/git/Data/streptomycin/output/snp_batches/snps_batch_00", header=None)
|
|
#https://gist.github.com/jrivero/1085501
|
|
n = 20
|
|
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'
|
|
mut_prediction = '/prediction'
|
|
|
|
submit_url = host_dynamut + mut_prediction
|