Skip to content

Instantly share code, notes, and snippets.

View ajasja's full-sized avatar

Ajasja Ljubetič ajasja

View GitHub Profile
pdb4amber -i ../../models/w2c_24A_xtal.pdb -o out/w2c_24A_xtal__00_raw_00_clean.pdb --dry --strip @/H --logfile stdout
==================================================
Summary of pdb4amber for: ../../models/w2c_24A_xtal.pdb
===================================================
----------Chains
The following (original) chains have been found:
A
B
def run_command(cmd):
"""Runs command, writes to stdout, raises exception on error"""
print(cmd)
#!{cmd}
exit_code = os.system(cmd)
assert exit_code == 0, 'Error running command'
def prepare_system(input_pdb, out_base, suffix='00_raw', skip_existing=True):
assert os.path.exists(input_pdb), f'{input_pdb} does not exists!'
final_name = f'{out_base}__{suffix}.top'
from simtk.openmm import *
from simtk.openmm.app import *
from simtk.unit import *
from pdbfixer import PDBFixer
nm = nanometer
fixer = PDBFixer(filename='test/1wa3_BA-05_modl.pdb')
fixer.findMissingResidues()
fixer.findNonstandardResidues()
#fixer.replaceNonstandardResidues()
# This script was generated by OpenMM-Setup on 2020-07-28.
from simtk.openmm import *
from simtk.openmm.app import *
from simtk.unit import *
#try:
# platform = Platform.getPlatformByName('OpenCL')
# platformProperties = {'Precision': 'mixed'}
#except:
VRT(1342)----=j10=--->VRT_-2_0_0(1343)
|----#j11#--->VRT_-1_0_0(1358)
| |----j1=4----->57:Sub1A(1-149)
| |----=j12=--->VRT_-1_10_0(1368)
| |----=j13=--->VRT_-1_11_0(1369)
| |----=j14=--->VRT_-1_12_0(1370)
| |----=j15=--->VRT_-1_13_0(1371)----j2=4---->206:Sub2A(150-298)
| |----=j16=--->VRT_-1_14_0(1372)----j3=4---->355:Sub3A(299-447)
| |----=j17=--->VRT_-1_1_0(1359)
| |----=j18=--->VRT_-1_2_0(1360)
VRT(1342)----=j10=--->VRT_-2_0_0(1343)
|----#j11#--->VRT_-1_0_0(1358)
| |----j1=4----->57:Sub1A(1-149)
| |----=j12=--->VRT_-1_10_0(1368)
| |----=j13=--->VRT_-1_11_0(1369)
| |----=j14=--->VRT_-1_12_0(1370)
| |----=j15=--->VRT_-1_13_0(1371)----j2=4---->206:Sub2A(150-298)
| |----=j16=--->VRT_-1_14_0(1372)----j3=4---->355:Sub3A(299-447)
| |----=j17=--->VRT_-1_1_0(1359)
| |----=j18=--->VRT_-1_2_0(1360)
VRT(1342)----=j10=--->VRT_-2_0_0(1343)
|----#j11#--->VRT_-1_0_0(1358)
| |----j1=4----->57:Sub1A(1-149)
| |----=j12=--->VRT_-1_10_0(1368)
| |----=j13=--->VRT_-1_11_0(1369)
| |----=j14=--->VRT_-1_12_0(1370)
| |----=j15=--->VRT_-1_13_0(1371)----j2=4---->206:Sub2A(150-298)
| |----=j16=--->VRT_-1_14_0(1372)----j3=4---->355:Sub3A(299-447)
| |----=j17=--->VRT_-1_1_0(1359)
| |----=j18=--->VRT_-1_2_0(1360)
VRT(1342)----=j10=--->VRT_-2_0_0(1343)
|----#j11#--->VRT_-1_0_0(1358)
| |----j1=4----->57:Sub1A(1-149)
| |----=j12=--->VRT_-1_10_0(1368)
| |----=j13=--->VRT_-1_11_0(1369)
| |----=j14=--->VRT_-1_12_0(1370)
| |----=j15=--->VRT_-1_13_0(1371)----j2=4---->206:Sub2A(150-298)
| |----=j16=--->VRT_-1_14_0(1372)----j3=4---->355:Sub3A(299-447)
| |----=j17=--->VRT_-1_1_0(1359)
| |----=j18=--->VRT_-1_2_0(1360)
REMARK PDBinfo-LABEL: 1 sym_surf
REMARK PDBinfo-LABEL: 2 sym_core
REMARK PDBinfo-LABEL: 3 full_bbi sym_surf
REMARK PDBinfo-LABEL: 4 full_bbi sym_surf
REMARK PDBinfo-LABEL: 5 sym_core
REMARK PDBinfo-LABEL: 6 full_bbi sym_core
REMARK PDBinfo-LABEL: 7 full_bbi sym_core
REMARK PDBinfo-LABEL: 8 sym_surf
REMARK PDBinfo-LABEL: 9 sym_core
REMARK PDBinfo-LABEL: 10 full_bbi sym_core
#Pyrosetta unsupported BuriedUnsatHbonds2 InterfaceHoles CavityVolume
pack_protocol = """<ROSETTASCRIPTS>
<SCOREFXNS>
### add Nov15 energy function with coordinate constraints
<ScoreFunction name="NOV15" weights="beta" >
<Reweight scoretype="coordinate_constraint" weight="1" />
</ScoreFunction>
<ScoreFunction name="VDW" weights="empty" >
<Reweight scoretype="fa_atr" weight="1.0" />
</ScoreFunction>