-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5e1713
commit 5aaf292
Showing
4 changed files
with
96 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
API Documentation | ||
================= | ||
|
||
.. autosummary:: | ||
:toctree: autosummary | ||
:recursive: | ||
|
||
helanal | ||
.. automodule:: helanal.helanal |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,38 @@ | ||
Getting Started | ||
=============== | ||
|
||
This page details how to get started with helanal. | ||
Installation | ||
------------ | ||
*TBA* | ||
|
||
|
||
Example use | ||
----------- | ||
Import MDAnalysis and helanal:: | ||
|
||
import MDAnalysis as mda | ||
from MDAnalysis.tests.datafiles import PSF, DCD | ||
import helanal | ||
|
||
You can pass in a single selection:: | ||
|
||
u = mda.Universe(PSF, DCD) | ||
hel = helanl.HELANAL(u, select='name CA and resnum 161-187') | ||
hel.run() | ||
|
||
All computed properties are available in ``.results``:: | ||
|
||
print(hel.results.summary) | ||
|
||
Alternatively, you can analyse several helices at once by passing | ||
in multiple selection strings:: | ||
|
||
hel2 = helanal.HELANAL(u, select=('name CA and resnum 100-160', | ||
'name CA and resnum 200-230')) | ||
|
||
The :func:`helix_analysis` function will carry out helix analysis on | ||
atom positions, treating each row of coordinates as an alpha-carbon | ||
equivalent:: | ||
|
||
hel_xyz = helanal.helix_analysis(u.atoms.positions, ref_axis=[0, 0, 1]) | ||
|
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
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