Skip to content

Instantly share code, notes, and snippets.

View bdrown's full-sized avatar

Bryon Drown bdrown

View GitHub Profile
@bdrown
bdrown / smiles_to_mol.py
Created May 13, 2020 13:22
Short python script for guessing the 3D structure of a molecule from a smiles string and writing out to mol file
# smiles_to_mol.py
__doc__ = """Guesses the initial geometry of a molecule based on SMILES string
"""
###############################
from rdkit import Chem
from rdkit.Chem import AllChem
import sys
###############################
@bdrown
bdrown / zip_file_extractor.py
Created April 27, 2020 15:24
Searches current directory for zip files that contains genbank files, then extracts and renames them.
#!/usr/bin/python
# zip_file_extractor.py
#
# Searches current directory for zip files that contains genbank files, then extracts and renames them.
#
# Usage: python zip_file_extractor.py
#
# 4/17/2020 - Initial script (Chloe Smith)
# 4/27/2020 - Implemented file renaming (Bryon Drown)
@bdrown
bdrown / calc_pbf.py
Created April 5, 2016 16:12
Script for calculating the PBF score of molecules. Script can be incorporated into Schrodinger's Maestro GUI in order to process structures selected in the Project Table.
#Name: Project Table:Plane of Best Fit - PJH Lab
#Command: pythonrun calc_pbf.run
__doc__ = """
Performs plane of best fit analysis.
Calculates the average distance of all atoms in each molecule to the plane that
fits each structure. Plane fitting is performed by single value decomposition
(SVD) using the Numpy package.
The script can also be run from the command line.
"""