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

Change bibliography to footbibliography #13

Merged
merged 5 commits into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion docs/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ dependencies:
- pip

- sphinxcontrib-bibtex=2.5.0
- mdanalysis-sphinx-theme
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to merge main into the branch before editing and had independently moved danalysis-sphinx-theme from pip to conda... and then I grouped it with other sphinx things.


- numpy
- scipy
- MDAnalysis
- cython
- MDAnalysisTests
- pytest
- mdanalysis-sphinx-theme

4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,6 @@

# -- Extension configuration -------------------------------------------------
intersphinx_mapping = {
'python': ('https://docs.python.org/3/', None),
'mdanalysis': ('https://docs.mdanalysis.org/stable/', None),
"python": ('https://docs.python.org/3/', None),
"mdanalysis": ('https://docs.mdanalysis.org/stable/', None),
Comment on lines -184 to +185
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here... doubled up on work that was already in main

}
25 changes: 12 additions & 13 deletions mdaencore/similarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@
#
"""\
The module contains implementations of similarity measures between protein
ensembles described in :cite:p:`b-LindorffLarsen2009`. The implementation and
examples are described in :cite:p:`b-Tiberti2015`.
ensembles.

The similarity measure algorithms here are as described
in :footcite:p:`LindorffLarsen2009`.
The implementation and examples are also further
described in :footcite:p:`Tiberti2015`.

The module includes facilities for handling ensembles and trajectories through
the :class:`Universe` class, performing clustering or dimensionality reduction
Expand All @@ -44,7 +48,7 @@
+ **Clustering based convergence evaluation** : :func:`ces_convergence`
+ **Dimensionality-reduction based convergence evaluation** : :func:`dres_convergence`

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

.. _Examples:
Examples
Expand Down Expand Up @@ -154,13 +158,8 @@

.. rubric:: References

.. bibliography::
:filter: False
:keyprefix: b-
:labelprefix: ᵇ
.. footbibliography::

Tiberti2015
LindorffLarsen2009
"""
import warnings
import logging
Expand Down Expand Up @@ -246,7 +245,7 @@ def harmonic_ensemble_similarity(sigma1,
x2):
"""
Calculate the harmonic ensemble similarity measure
as defined in :cite:p:`b-Tiberti2015`.
as defined in :footcite:p:`Tiberti2015`.

Parameters
----------
Expand Down Expand Up @@ -719,7 +718,7 @@ def hes(ensembles,
r"""Calculates the Harmonic Ensemble Similarity (HES) between ensembles.

The HES is calculated with the symmetrized version of Kullback-Leibler
divergence as described in :cite:p:`b-Tiberti2015`.
divergence as described in :footcite:p:`Tiberti2015`.

Parameters
----------
Expand Down Expand Up @@ -962,7 +961,7 @@ def ces(ensembles,

Calculates the Clustering Ensemble Similarity (CES) between ensembles
using the Jensen-Shannon divergence as described in
:cite:p:`b-Tiberti2015`.
:footcite:p:`Tiberti2015`.

Parameters
----------
Expand Down Expand Up @@ -1230,7 +1229,7 @@ def dres(ensembles,

Calculates the Dimensional Reduction Ensemble Similarity (DRES) between
ensembles using the Jensen-Shannon divergence as described in
:cite:p:`b-Tiberti2015`.
:footcite:p:`Tiberti2015`.


Parameters
Expand Down
Loading