Skip to content

Instantly share code, notes, and snippets.

View aozalevsky's full-sized avatar

Arthur Zalevsky aozalevsky

View GitHub Profile
@aozalevsky
aozalevsky / alphafold_multifragment_file.py
Last active July 25, 2021 10:04
Snippet to map alphafold multi-fragment structures to the reference sequence
import prody
# Set fname
fname = 'AF-Q96M86-F13-model_v1.cif.gz'
# Use prody to parse AlphaFold structure in mmCIF format
pdb, header = prody.parseMMCIF(fname, header=True)
# extract coordinates of the fragment in the reference sequence
# e.g. Uniprot AC Q96M86
@aozalevsky
aozalevsky / alphafold_plddt2pdb.py
Created July 30, 2021 10:27
Add pLDDT scores to structures predicted by the AlphaFold2
import prody
import dill # or pickle
# Read AF2 output
with open('result_model_1.pkl', 'rb') as f:
af = dill.load(f)
# Parse PDB structure
pdb = prody.parsePDB('relaxed_model_1.pdb')
@aozalevsky
aozalevsky / protein_geodesic_distance.ipynb
Last active June 3, 2022 14:05
Calculate geodesic distance on the protein surface
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aozalevsky
aozalevsky / Singularity.def
Created March 1, 2024 02:38
Singularity recipe for the Molprobity
Bootstrap: docker
From: ubuntu:22.04
Stage: spython-base
%labels
MAINTAINER Arthur Zalevsky <aozalevsky@gmail.com>
%post