Skip to content

Commit

Permalink
Check in doc work
Browse files Browse the repository at this point in the history
  • Loading branch information
avirshup committed Oct 17, 2016
1 parent f8d699b commit 7c216b0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
_build
_moldesign_api
_mdt_api
3 changes: 2 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ help:

.PHONY: clean
clean:
rm -rf $(BUILDDIR) _moldesign_api
rm -rf $(BUILDDIR) _moldesign_api _mdt_api

moldesign_api:
./autogen_api.sh
python generate_api.py

html dirhtml singlehtml pickle json htmlhelp qthelp applehelp devhelp epub \
epub3 latex latexpdf latexpdfja text man texinfo info gettext changes xml \
Expand Down
5 changes: 5 additions & 0 deletions moldesign/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
# This is a very big dict, so we load it as a compressed database
_bondfilename = os.path.join(PACKAGEPATH, '_static_data/residue_bonds')
RESIDUE_BONDS = utils.CompressedJsonDbm(_bondfilename, 'r', dbm=utils.ReadOnlyDumb)
""" Database of bonds, as determined by the PDB chemical component dictionary.
Accessed similarly to a dict, but not stored in memory."""

AMINO_NAMES = {
"ALA": "Alanine",
Expand Down Expand Up @@ -117,6 +119,7 @@
"TYR": "Tyrosine",
"VAL": "Valine",
"UNK": "Undetermined"}
""" Maps 3-letter codes to common names """

NUCLEIC_NAMES = {
'A': 'Adenine',
Expand All @@ -125,6 +128,7 @@
'I': 'Inosine', # actually not sure about this one
'T': 'Thymine',
'U': 'Uracil'}
""" Maps 1-letter nucleic base codes to common names """

IONS = {'NA': 'Na+',
'K': 'K+',
Expand All @@ -134,6 +138,7 @@
'Cl': 'Cl-',
'Br': 'Br-',
'I': 'I-'}
""" Maps PDB residue names for ions to common names"""

RESTYPES = dict(
protein=set(AMINO_NAMES),
Expand Down

0 comments on commit 7c216b0

Please sign in to comment.