Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaning up API docs #49

Merged
merged 6 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 46 additions & 5 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,51 @@
=================
API Documentation
=================

This documentation details the modules, classes, and functions in ``mdaencore``.
The package contains implementations of similarity measures between protein
ensembles described in :footcite:p:`LindorffLarsen2009`. The implementation and examples
are described in :footcite:p:`Tiberti2015`.

The module includes facilities for handling ensembles and trajectories through
the :class:`Universe` class, performing clustering or dimensionality reduction
of the ensemble space, estimating multivariate probability distributions from
the input data, and more. ENCORE can be used to compare experimental and
simulation-derived ensembles, as well as estimate the convergence of
trajectories from time-dependent simulations.

ENCORE includes three different methods for calculations of similarity measures
between ensembles implemented in individual functions:


+ **Harmonic Ensemble Similarity** : :func:`~mdaencore.similarity.hes`
+ **Clustering Ensemble Similarity** : :func:`~mdaencore.similarity.ces`
+ **Dimensional Reduction Ensemble Similarity** : :func:`mdaencore.similarity.dres`

as well as two methods to evaluate the convergence of trajectories:

+ **Clustering based convergence evaluation** : :func:`mdaencore.similarity.ces_convergence`
+ **Dimensionality-reduction based convergence evaluation** : :func:`mdaencore.similarity.dres_convergence`


When using this module in published work please cite :footcite:p:`Tiberti2015`.


Modules
-------

.. toctree::
:maxdepth: 1

encore/similarity
encore/clustering
encore/dimensionality_reduction
encore/confdistmatrix
encore/covariance
encore/bootstrap
encore/utils


.. autosummary::
:toctree: autosummary
:recursive:
References
----------

mdaencore
.. footbibliography::
6 changes: 6 additions & 0 deletions docs/source/encore/bootstrap.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
===================================================
Bootstrap procedures --- :mod:`mdaencore.bootstrap`
===================================================

.. automodule:: mdaencore.bootstrap
:members:
24 changes: 24 additions & 0 deletions docs/source/encore/clustering.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
============
Clustering
============

.. automodule:: mdaencore.clustering.cluster
:members:

.. automodule:: mdaencore.clustering.ClusterCollection
:members:

.. automodule:: mdaencore.clustering.ClusteringMethod
:members:


Clustering algorithms
=====================

The following clustering algorithms are always available:

.. automodule:: mdaencore.clustering.affinityprop
:members:



6 changes: 6 additions & 0 deletions docs/source/encore/confdistmatrix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
================================================================
Distance matrix calculations --- :mod:`mdaencore.confdistmatrix`
================================================================

.. automodule:: mdaencore.confdistmatrix
:members:
6 changes: 6 additions & 0 deletions docs/source/encore/covariance.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
======================================================
Covariance calculation --- :mod:`mdaencore.covariance`
======================================================

.. automodule:: mdaencore.covariance
:members:
18 changes: 18 additions & 0 deletions docs/source/encore/dimensionality_reduction.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
==========================
Dimensionality reduction
==========================

.. automodule:: mdaencore.dimensionality_reduction.reduce_dimensionality
:members:

.. automodule:: mdaencore.dimensionality_reduction.DimensionalityReductionMethod
:members:

Dimensionality reduction algorithms
===================================

The following dimensionality reduction algorithms are always natively
available:

.. automodule:: mdaencore.dimensionality_reduction.stochasticproxembed
:members:
6 changes: 6 additions & 0 deletions docs/source/encore/similarity.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
================================================================
Ensemble Similarity Calculations --- :mod:`mdaencore.similarity`
================================================================

.. automodule:: mdaencore.similarity
:members:
8 changes: 8 additions & 0 deletions docs/source/encore/utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
==============================
Utility functions for ENCORE
==============================

.. automodule:: mdaencore.utils
:members:

.. autofunction:: mdaencore.cutils.PureRMSD
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Welcome to mdaencore's documentation!
=========================================================

.. toctree::
:maxdepth: 2
:maxdepth: 1
:caption: Contents:
:hidden:

Expand Down
6 changes: 5 additions & 1 deletion mdaencore/clustering/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
# MDAnalysis: A Toolkit for the Analysis of Molecular Dynamics Simulations.
# J. Comput. Chem. 32 (2011), 2319--2327, doi:10.1002/jcc.21787
#
"""The module defines a function serving as front-end for various clustering
"""\
clustering frontend --- :mod:`mdaencore.clustering.cluster`
============================================================================

The module defines a function serving as front-end for various clustering
algorithms, wrapping them to allow them to be used interchangably.
"""
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion mdaencore/similarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@

When using this module in published work please cite :footcite:p:`Tiberti2015`.

.. _Examples:
Examples
========

Expand Down
Loading