This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ATOM 1 N ALA A 274 38.738 24.712 4.073 1.00 48.46 N | |
ATOM 2 CA ALA A 274 39.136 24.978 5.467 1.00 47.32 C | |
ATOM 3 C ALA A 274 40.641 24.908 5.664 1.00 47.39 C | |
ATOM 4 O ALA A 274 41.190 25.351 6.680 1.00 47.11 O | |
ATOM 5 CB ALA A 274 38.454 24.026 6.379 1.00 46.85 C | |
ATOM 6 N SER A 275 41.326 24.370 4.672 1.00 47.40 N | |
ATOM 7 CA SER A 275 42.706 24.097 4.855 1.00 47.64 C | |
ATOM 8 C SER A 275 43.596 25.307 4.559 1.00 47.25 C | |
ATOM 9 O SER A 275 43.270 26.099 3.736 1.00 47.62 O | |
ATOM 10 CB SER A 275 43.053 22.863 4.047 1.00 47.97 C |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" ?> | |
<State time="0" type="State" version="1"> | |
<PeriodicBoxVectors> | |
<A x="8.294880307685814" y="0" z="0" /> | |
<B x="0" y="8.294880307685814" z="0" /> | |
<C x="0" y="0" z="8.294880307685814" /> | |
</PeriodicBoxVectors> | |
<Parameters MonteCarloPressure="1.01325" /> | |
<Energies KineticEnergy="143998.28275239374" PotentialEnergy="23807.646244278643" /> | |
<Positions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mdtraj as md | |
import numpy as np | |
def dipole_moment(traj, charges): | |
"""Compute the dipole moment of an MDTraj object.""" | |
xyz = md.compute_displacements(traj, np.array([[0, i] for i in range(traj.n_atoms)])).astype('float') | |
return xyz.transpose(0, 2, 1).dot(charges) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
import pymbar | |
samples_per_state = 250 | |
n_states = 100 | |
rates = np.linspace(1, 3, n_states) | |
N_k = np.ones(n_states, 'int') * samples_per_state | |
n_samples = n_states * samples_per_state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import mdtraj as md | |
import gzip | |
import tempfile | |
import glob | |
directories = glob.glob("./all_pdb/*") | |
for directory in directories: | |
filenames = glob.glob("%s/*.gz" % directory) | |
for filename in filenames: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-bash-4.1$ cat mpitest.o2365443 | |
3,2,1 | |
3,2,1 | |
3,2,1 | |
3,2,1 | |
gpu-1-4.local | |
gpu-1-4.local | |
gpu-1-4.local | |
gpu-1-5.local | |
grep: /var/spool/torque/aux/2365443.mskcc-fe1.localgpu: No such file or directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mdtraj as md | |
import simtk.openmm.app as app | |
import pdbfixer | |
fixer = pdbfixer.PDBFixer(pdbid='4fmu') | |
fixer.findMissingResidues() | |
fixer.findNonstandardResidues() | |
fixer.replaceNonstandardResidues() | |
fixer.findMissingAtoms() | |
fixer.addMissingAtoms() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#set -x | |
# Shows you the largest objects in your repo's pack file. | |
# Written for osx. | |
# | |
# @see http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/ | |
# @author Antony Stubbs | |
# set the internal field spereator to line break, so that we can iterate easily over the verify-pack output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import simtk.openmm.app as app | |
import numpy as np | |
import simtk.openmm as mm | |
from simtk import unit as u | |
from openmmtools import integrators, testsystems | |
temperature = 300 * u.kelvin | |
testsystem = testsystems.WaterBox() |