Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gitesei committed Sep 1, 2020
1 parent dadad6b commit 8904b56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/_docs/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The class for running the PRE calculations is `PREpredict`.
Here is how to calculate intensity ratios and PRE rates for a mutant of PDB 1NTI (20 conformations) using the rotamer-library approach

~~~ python
from DEERpredict.PRE import PREpredict
from DEERPREdict.PRE import PREpredict

u = MDAnalysis.Universe('1nti.pdb')
PRE = PREpredict(u, residue = 36, log_file = 'log', temperature = 298, atom_selection = 'H')
Expand Down Expand Up @@ -44,7 +44,7 @@ Instead of using the rotamer library approach, the position of the unpaired elec
setting `Cbeta=True`.

~~~ python
from DEERpredict.PRE import PREpredict
from DEERPREdict.PRE import PREpredict

u = MDAnalysis.Universe('1nti.pdb')
PRE = PREpredict(u, residue = 36, log_file = 'log', temperature = 298, atom_selection = 'H', Cbeta = True)
Expand All @@ -57,7 +57,7 @@ PRE.run(output_prefix = 'calcPREs/res', tau_c = 2*1e-09, tau_t = .5*1e-9, delay
Here is an example of how to run DEERpredict to calculate the DEER distribution for HIV-1 protease (PDB ID 3BVB) labeled with nitroxide groups at residue 55.

~~~ python
from DEERpredict.DEER import DEERpredict
from DEERPREdict.DEER import DEERpredict

DEER = DEERpredict(MDAnalysis.Universe('3BVB.pdb'), residues = [55, 55], chains=['A', 'B'], log_file = 'log', temperature = 298 )
DEER.run(output_prefix = 'res')
Expand All @@ -70,7 +70,7 @@ The function to back-calculate the time-domain data from a distance distribution
The sums over the Boltzmann weights for the Lennard-Jones probe-protein interaction energies of positions K55 and K55' are saved to `res-Z-55-55.pkl`.

~~~ python
from DEERpredict.utils import Operations
from DEERPREdict.utils import Operations

r, p = np.loadtxt('res-55-55.dat', unpack=True)
t = np.linspace(0.01, 5.5, 512)
Expand Down

0 comments on commit 8904b56

Please sign in to comment.