added script to submit jobs
This commit is contained in:
parent
4f25acfa35
commit
c8feba90bc
1 changed files with 36 additions and 0 deletions
36
dynamut/dynamut_reading_muts.py
Executable file
36
dynamut/dynamut_reading_muts.py
Executable file
|
@ -0,0 +1,36 @@
|
||||||
|
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue