This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import pandas as pd | |
import click | |
from Bio.Seq import Seq | |
from Bio.SeqRecord import SeqRecord | |
from Bio import SeqIO | |
@click.command() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TYPE=${TYPE:-prot} | |
[[ ! -z ${1} ]] && INFILE=${1} || exit 1 | |
shift | |
makeblastdb -in ${INFILE} -dbtype ${TYPE} -parse_seqids ${@} -blastdb_version 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blastp -db fasta.fa -query database.fa \ | |
-outfmt "6 std stitle qcovs" -num_threads 10 -out out.blast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Functions for parallelizing things | |
def init_spark(nproc=-1, appname="sparksession"): | |
"""Function to start a Spark executor.""" | |
from pyspark.sql import SparkSession | |
if nproc == -1: | |
# Use all CUPs | |
spark = SparkSession.builder.master( | |
"local[*]").appName(appname).getOrCreate() | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: vim-keys.conf,v 1.2 2010-09-18 09:36:15 nicm Exp $ | |
# | |
# vim-keys.conf, v1.2 2010/09/12 | |
# | |
# By Daniel Thau. Public domain. | |
# | |
# This configuration file binds many vi- and vim-like bindings to the | |
# appropriate tmux key bindings. Note that for many key bindings there is no | |
# tmux analogue. This is intended for tmux 1.3, which handles pane selection | |
# differently from the previous versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Utility script for feature generation | |
# Md Mahmudulla Hassan | |
# The University of Texas at El Paso | |
# Last Modified: 12/19/2018 | |
import os | |
from rdkit import Chem | |
from rdkit.Chem import AllChem | |
import tempfile | |
import shutil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xmltodict | |
import pandas as pd | |
with open("full_database.xml") as db: | |
doc = xmltodict.parse(db.read()) | |
values = [] | |
for item in doc['drugbank']['drug']: | |
logp = None | |
try: |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.