Skip to content

Instantly share code, notes, and snippets.

@avishekrk
Created March 24, 2016 21:15
Show Gist options
  • Save avishekrk/0d15994cea5f8a61688f to your computer and use it in GitHub Desktop.
Save avishekrk/0d15994cea5f8a61688f to your computer and use it in GitHub Desktop.
Calculate bulk DFI
def calculate_dfi_windows(pdbid):
covarmat = glob.glob(pdbid+'_[3-5]?00_????_mwcovarmat.dat')
pdbfile = pdbid+'.pdb'
fdfi_residues = ['A235','A340']
prefix = map(lambda x: x.replace('_mwcovarmat.dat','-dfianalysis.csv'),covarmat)
for mat, pre in zip(covarmat, prefix):
print mat, pre
dfi.calc_dfi(pdbfile,mdhess=mat,ls_reschain=fdfi_residues,writetofile=True,dfianalfile=pre)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment