Skip to content

Commit

Permalink
Updated documentation content and PR builds with RTD
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmkenney authored Oct 5, 2023
2 parents 4993a78 + 37c5d86 commit 273eb7d
Show file tree
Hide file tree
Showing 14 changed files with 104 additions and 193 deletions.
14 changes: 14 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "mambaforge-4.10"

python:
install:
- method: pip
path: .

conda:
environment: docs/requirements.yaml
1 change: 1 addition & 0 deletions docs/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ dependencies:
- pip

- mdanalysis-sphinx-theme >=1.0.1
- sphinxcontrib-bibtex
# Pip-only installs
#- pip:
6 changes: 1 addition & 5 deletions docs/source/api.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
API Documentation
=================

.. autosummary::
:toctree: autosummary
:recursive:

pathsimanalysis
.. automodule:: pathsimanalysis.psa
3 changes: 3 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,12 @@
"sphinx.ext.napoleon",
"sphinx.ext.intersphinx",
"sphinx.ext.extlinks",
'sphinxcontrib.bibtex',
"mdanalysis_sphinx_theme",
]

bibtex_bibfiles = ['references.bib']

autosummary_generate = True
# This skips generating an autodoc of the test module
# when using the autosummary directive that is included
Expand Down
11 changes: 11 additions & 0 deletions docs/source/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,14 @@ Getting Started
===============

This page details how to get started with PathSimAnalysis.

Installation
------------

PathSimAnalysis is currently only installable from source.

.. code-block:: bash
git clone --depth=1 https://github.com/MDAnalysis/PathSimAnalysis
cd PathSimAnalysis
pip install .
2 changes: 2 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
Welcome to PathSimAnalysis's documentation!
=========================================================

PathSimAnalysis is an MDAnalysis based analysis package for calculating the similarity between molecular dynamics trajectories.

.. toctree::
:maxdepth: 2
:caption: Contents:
Expand Down
64 changes: 64 additions & 0 deletions docs/source/references.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
@article{Seyler2015,
doi = {10.1371/journal.pcbi.1004568},
author = {Seyler, Sean L. AND Kumar, Avishek AND Thorpe, M. F. AND Beckstein, Oliver},
journal = {PLOS Computational Biology},
publisher = {Public Library of Science},
title = {Path Similarity Analysis: A Method for Quantifying Macromolecular Pathways},
year = {2015},
month = {10},
volume = {11},
pages = {1-37},
number = {10}
}

@article{Taha2015,
author={Taha, Abdel Aziz and Hanbury, Allan},
journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
title={An Efficient Algorithm for Calculating the Exact Hausdorff Distance},
year={2015},
volume={37},
number={11},
pages={2153-2163},
doi={10.1109/TPAMI.2015.2408351}
}

@article{Alt1995,
author = {Alt, Helmut and Godau, Michael},
title = {Computing the Frechet distance between two polygonal curves},
journal = {International Journal of Computational Geometry \& Applications},
volume = {05},
number = {01n02},
pages = {75-91},
year = {1995},
doi = {10.1142/S0218195995000064}
}

@article{EiterMannila1994,
author = {Eiter, Thomas and Mannila, Heikki},
year = {1994},
month = {05},
journal = {},
title = {Computing Discrete Frechet Distance}
}

@article{EiterMannila1997,
author = {Eiter, Thomas and Mannila, Heikki},
doi = {10.1007/s002360050075},
journal = {Acta Informatica},
Number = {2},
Pages = {109--133},
Title = {Distance measures for point sets and their computation},
Volume = {34},
year = {1997}
}

@article{Frechet1906,
author = {Frèchet, M. Maurice},
doi = {10.1007/BF03018603},
journal = {Rendiconti del Circolo Matematico di Palermo (1884-1940)},
Number = {1},
Pages = {1--72},
Title = {Sur quelques points du calcul fonctionnel},
Volume = {22},
year = {1906}
}
17 changes: 0 additions & 17 deletions pathsimanalysis/data/README.md

This file was deleted.

Empty file removed pathsimanalysis/data/__init__.py
Empty file.
17 changes: 0 additions & 17 deletions pathsimanalysis/data/files.py

This file was deleted.

45 changes: 0 additions & 45 deletions pathsimanalysis/data/mda.txt

This file was deleted.

20 changes: 8 additions & 12 deletions pathsimanalysis/psa.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
Calculating path similarity --- :mod:`pathsimanalysis.psa`
==========================================================================
:Author: Sean Seyler
:Year: 2015
:Copyright: GNU Public License v3
.. versionadded:: 0.10.0
The module contains code to calculate the geometric similarity of trajectories
Expand Down Expand Up @@ -88,11 +84,11 @@
.. attribute:: u_original
:class:`MDAnalysis.Universe` object with a trajectory
:class:`~MDAnalysis.Universe` object with a trajectory
.. attribute:: u_reference
:class:`MDAnalysis.Universe` object containing a reference structure
:class:`~MDAnalysis.Universe` object containing a reference structure
.. attribute:: select
Expand All @@ -112,7 +108,7 @@
.. attribute:: u_fitted
:class:`MDAnalysis.Universe` object with the fitted trajectory
:class:`~MDAnalysis.Universe` object with the fitted trajectory
.. attribute:: path
Expand Down Expand Up @@ -386,7 +382,7 @@ def hausdorff(P, Q):
>>> import MDAnalysis as mda
>>> import numpy
>>> from MDAnalysis.tests.datafiles import PSF, DCD
>>> from MDAnalysis.analysis import psa
>>> import pathsimanalysis as psa
>>> u = mda.Universe(PSF,DCD)
>>> mid = int(len(u.trajectory)/2)
>>> ca = u.select_atoms('name CA')
Expand Down Expand Up @@ -453,7 +449,7 @@ def hausdorff_wavg(P, Q):
>>> import MDAnalysis as mda
>>> from MDAnalysis import Universe
>>> from MDAnalysis.tests.datafiles import PSF, DCD
>>> from MDAnalysis.analysis import psa
>>> import pathsimanalysis as psa
>>> u = mda.Universe(PSF,DCD)
>>> mid = int(len(u.trajectory)/2)
>>> ca = u.select_atoms('name CA')
Expand Down Expand Up @@ -511,7 +507,7 @@ def hausdorff_avg(P, Q):
>>> import MDAnalysis as mda
>>> from MDAnalysis.tests.datafiles import PSF, DCD
>>> from MDAnalysis.analysis import psa
>>> import pathsimanalysis as psa
>>> u = mda.Universe(PSF,DCD)
>>> mid = int(len(u.trajectory)/2)
>>> ca = u.select_atoms('name CA')
Expand Down Expand Up @@ -610,7 +606,7 @@ def discrete_frechet(P, Q):
>>> import MDAnalysis as mda
>>> import numpy as np
>>> from MDAnalysis.tests.datafiles import PSF, DCD
>>> from MDAnalysis.analysis import psa
>>> import pathsimanalysis as psa
>>> u = mda.Universe(PSF,DCD)
>>> mid = int(len(u.trajectory)/2)
>>> ca = u.select_atoms('name CA')
Expand Down Expand Up @@ -1494,7 +1490,7 @@ def run_pairs_analysis(self, **kwargs):
indexed according to distance vector convention (i.e., element *(i,j)*
in distance matrix representation corresponds to element
:math:`s=N*i+j-(i+1)*(i+2)` in distance vector representation, which is
the :math:`s^\text{th}` comparison). For each unique pair of paths, the
the :math:`s`:sup:`th` comparison). For each unique pair of paths, the
nearest neighbors for that pair can be stored in :attr:`NN` and the
Hausdorff pair in :attr:`HP`. :attr:`PP` stores the full information
of Hausdorff pairs analysis that is available for each pair of path,
Expand Down
20 changes: 0 additions & 20 deletions pathsimanalysis/tests/conftest.py

This file was deleted.

77 changes: 0 additions & 77 deletions pathsimanalysis/tests/utils.py

This file was deleted.

0 comments on commit 273eb7d

Please sign in to comment.