Skip to content

Instantly share code, notes, and snippets.

View leelasd's full-sized avatar
🏠
Working from home

Leela S. Dodda leelasd

🏠
Working from home
View GitHub Profile
@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.
"""
@JoaoRodrigues
JoaoRodrigues / bio_align.py
Last active January 6, 2023 22:10
Sequence-based structure alignment of protein structures with Biopython
#!/usr/bin/env python
"""Sequence-based structural alignment of two proteins."""
import argparse
import pathlib
from Bio.PDB import FastMMCIFParser, MMCIFIO, PDBParser, PDBIO, Superimposer
from Bio.PDB.Polypeptide import is_aa
@dwhswenson
dwhswenson / run_md.py
Last active November 1, 2021 06:45
Simple OpenMM-based MD from Gromacs files
#!/usr/bin/env python
# coding: utf-8
##########################################################################
# this script was generated by openmm-builder. to customize it further,
# you can save the file to disk and edit it with your favorite editor.
##########################################################################
# REQUIRES:
# * OpenMM (core dynamics)
@JoaoRodrigues
JoaoRodrigues / hydrophobic_moment.md
Last active July 13, 2022 20:40
Peptide/Protein Hydrophobic Moment Calculator
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@PatWalters
PatWalters / split_complex_v2.py
Created October 2, 2018 01:20
An improved script to extract a ligand from a protein-ligand complex and assign bond orders
#!/usr/bin/env python
import sys
from prody import *
from rdkit import Chem
from rdkit.Chem import AllChem
from io import StringIO
import pypdb
@PatWalters
PatWalters / dupe.py
Last active January 14, 2023 01:12
Compare two SMILES or SD files to identify duplicate structures. Duplicates are identified by comparing InChI keys
#!/usr/bin/env python
import sys
import os
from rdkit import Chem
def molecule_supplier_from_name(input_file_name):
ext = os.path.splitext(input_file_name)[-1]
if ext == ".smi":
@greglandrum
greglandrum / KNIME_from_Jupyter_demo.ipynb
Created January 14, 2019 13:43
KNIME from Jupyter_demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@greglandrum
greglandrum / Show_Ph4_Features_in_PyMOL.ipynb
Created January 15, 2019 09:52
Show_Ph4_Features_in_PyMOL.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@greglandrum
greglandrum / Clustering Methods.ipynb
Created May 10, 2019 06:20
Clustering Methods.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.