Skip to content

Commit

Permalink
Merge pull request #157 from StollLab/mkpep
Browse files Browse the repository at this point in the history
refactoring, exampels, and docs
  • Loading branch information
mtessmer authored Aug 15, 2024
2 parents 6e261cd + 771bb3a commit 8cd8705
Show file tree
Hide file tree
Showing 90 changed files with 5,219 additions and 292 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
<p align="center">
<a href="https://stolllab.github.io/chiLife/">
<img src="https://img.shields.io/badge/docs-latest-brightgreen.svg" height="60">
<img src="https://github.com/StollLab/chiLife/raw/main/img/chiLife_logo.png" width="300">
</a>
</p>

<p align="center">
<a href="https://stolllab.github.io/chiLife/">
<img src="https://img.shields.io/badge/docs-latest-brightgreen.svg" width="300">
</a>
</p>


| :exclamation: News :exclamation: |
|-------------------------------------------------------------------------------------------|
| chiLife now supports arbitrary backbone attachments including DNA and RNA labels and more!|
| **UPDATES** |
|-------------------------------------------------------------------------------------------------------------------------------|
| 2024.8.15 : chiLife 1.0 released! |
| 2024.8.15 : chiLife can now be used to create arbitrary peptides with natural and NCAAs. Checkout the `make_peptide` function. |
| 2024.8.15 : chiLife can make NCAA structures from smiles. Checkout `smiles2residue`. Note: Requires RDKit to be installed. |
| chiLife now supports arbitrary backbone attachments including DNA and RNA labels and more! |



Expand Down
File renamed without changes
File renamed without changes
Binary file added docs/source/_static/chiLife_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/chiLife_logo_enclosed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/customlabels.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/memdock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 11 additions & 7 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

# -- Project information -----------------------------------------------------

project = 'χLife'
project = 'chiLife'
copyright = '2022, Maxx Tessmer'
author = 'Maxx Tessmer'

Expand Down Expand Up @@ -47,7 +47,7 @@
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = []
autodoc_member_order = 'bysource'
autodoc_type_aliases = {ArrayLike: 'ArrayLike'}
autodoc_type_aliases = {'ArrayLike': 'ArrayLike'}
source_suffix = [".rst", ".md"]
add_module_names = False
python_use_unqualified_type_names = True
Expand All @@ -66,12 +66,16 @@
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'

html_static_path = ['_static']
html_logo = '_static/chiLife_logo.png'

nbsphinx_thumbnails = {
'gallery/04-Adding_custom_spin_labels':'_static/customlabels.png',
'gallery/06-Membrane_Docking': '_static/memdock.png',
'gallery/10-Nucleic_acid_labels' : '_static/TUMLabeled.png',
'gallery/11-Arbitrary_molecular_labels': '_static/CMP501NCA.png'
}
# Add any paths that contain custom static files (such as style sheets) here,
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".



html_static_path = ['_static']
13 changes: 8 additions & 5 deletions docs/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ Examples
:glob:

gallery/01-Basic_Spin_Labeling.nblink
gallery/02-SDSL_Site_Screen.nblink
gallery/03-Adding_Custom_Spin_Lables.nblink
gallery/04-Repacking_with_MCMC_Sampling.nblink
gallery/05-Membrane_Docking.nblink
gallery/06-Custom_Energy_Function.nblink
gallery/02-Simple_SDSL_site_pair_screen.nblink
gallery/03-SDSL_Site_Screen.nblink
gallery/04-Adding_custom_spin_labels.nblink
gallery/05-Repacking_with_MCMC_Sampling.nblink
gallery/06-Membrane_Docking.nblink
gallery/07-Custom_Energy_Function.nblink
gallery/09-Bifunctional_Labels.nblink
gallery/10-Nucleic_acid_labels.nblink
gallery/11-Arbitrary_molecular_labels.nblink
3 changes: 0 additions & 3 deletions docs/source/gallery/02-SDSL_Site_Screen.nblink

This file was deleted.

3 changes: 3 additions & 0 deletions docs/source/gallery/02-Simple_SDSL_site_pair_screen.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/02 - Simple SDSL site pair screen/02 - Simple SDSL site pair screen.ipynb"
}
3 changes: 0 additions & 3 deletions docs/source/gallery/03-Adding_Custom_Spin_Lables.nblink

This file was deleted.

3 changes: 3 additions & 0 deletions docs/source/gallery/03-SDSL_Site_Screen.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/03 - SDSL site screen for conformational change/03-SDSL Site Screen.ipynb"
}
3 changes: 3 additions & 0 deletions docs/source/gallery/04-Adding_custom_spin_labels.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/04 - Adding custom spin labels/04 - Adding custom spin labels.ipynb"
}
3 changes: 0 additions & 3 deletions docs/source/gallery/04-Repacking_with_MCMC_Sampling.nblink

This file was deleted.

3 changes: 0 additions & 3 deletions docs/source/gallery/05-Membrane_Docking.nblink

This file was deleted.

3 changes: 3 additions & 0 deletions docs/source/gallery/05-Repacking_with_MCMC_Sampling.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/05 - Repacking with MCMC sampling/05-Repacking with MCMC sampling.ipynb"
}
3 changes: 0 additions & 3 deletions docs/source/gallery/06-Custom_Energy_Function.nblink

This file was deleted.

3 changes: 3 additions & 0 deletions docs/source/gallery/06-Membrane_Docking.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/06 - Membrane Docking/06-Membrane Docking.ipynb"
}
3 changes: 3 additions & 0 deletions docs/source/gallery/07-Custom_Energy_Function.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/07 - Custom energy functions/07 - Custom energy functions.ipynb"
}
3 changes: 3 additions & 0 deletions docs/source/gallery/10-Nucleic_acid_labels.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/10 - Nucleic acid labels/10 - Nucleic acid labels.ipynb"
}
3 changes: 3 additions & 0 deletions docs/source/gallery/11-Arbitrary_molecular_labels.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/11 - Arbitrary molecular labels/12 - Arbitrary molecular labels.ipynb"
}
3 changes: 3 additions & 0 deletions docs/source/gallery/12-Analyzing_MD_simulations.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/12 - Analyzing MD simulations/12 - Analyzing MD Simulations.ipynb"
}
File renamed without changes
Binary file added docs/source/gallery/CMP501NCA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/gallery/CMP501NCAsm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added docs/source/gallery/TUMLabeled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added docs/source/gallery/customlabels.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/gallery/memdock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
χLife
======
chiLife (χLife)
===============

.. mdinclude:: ../../README.md

Expand Down
10 changes: 10 additions & 0 deletions docs/source/rotamer_libraries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@
Rotamer Libraries
=================

.. note::
As of version 0.4.0 chiLife supports custom rotamer libraries with arbitrary backbones. This allows for the
creation of rotamer libraries for nucleic acids, as well as libraries that can be used to modify ligands or
glycans.

We have added an example of how to create a nucleic acid label and a ligand label in the :ref:`Examples`
section.


.. _custom-rotamer-libraries:


---------------------------------
Creating Custom Rotamer Libraries
---------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "558eb854-221c-4ef3-ae64-2b49a4d9a298",
"metadata": {},
"cell_type": "markdown",
"source": "# Simple SDSL site pair screen",
"id": "75e838cf0ee2702b"
},
{
"metadata": {},
"cell_type": "code",
"outputs": [],
"execution_count": 1,
"source": [
"from itertools import combinations\n",
"from tqdm import tqdm\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt \n",
"import chilife as xl"
]
],
"id": "558eb854-221c-4ef3-ae64-2b49a4d9a298"
},
{
"cell_type": "code",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
"\n",
"xl.save(T109R3A, T109NBA, T109GD3, T4L)\n"
]
},
{
"metadata": {},
"cell_type": "markdown",
"source": "![labels](customlabels.png)"
}
],
"metadata": {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@
"plt.legend()\n",
"plt.show()\n"
]
},
{
"metadata": {},
"cell_type": "markdown",
"source": "![docked](memdock.png)"
}
],
"metadata": {
Expand Down
Binary file added examples/06 - Membrane Docking/memdock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8cd8705

Please sign in to comment.