Skip to content

Commit 0d8f1cd

Browse files
authored
Merge pull request #94 from ucl-cssb/documentation_website
Update hyperlinks and documentation website
2 parents 6a7575d + ca57c15 commit 0d8f1cd

3 files changed

Lines changed: 26 additions & 28 deletions

File tree

README.rst

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Modelling and Inference of MICrobiomes Project (MIMIC)
66
:target: https://codecov.io/gh/ucl-cssb/MIMIC
77

88
Overview
9-
---------
9+
--------
1010

1111
MIMIC: A Comprehensive Python Package for Simulating, Inferring, and Predicting
1212
Microbial Community Interactions
@@ -32,7 +32,7 @@ microbial ecology research and supports ecological predictions and applications,
3232
benefiting the scientific and applied microbiology communities.
3333

3434
Structure
35-
-----------
35+
---------
3636

3737
The repository is organized into the following main directories:
3838

@@ -59,17 +59,16 @@ The repository is organized into the following main directories:
5959
- `tests/`: Contains unit tests for the project's code.
6060
- `.github/`: Contains GitHub templates and workflows.
6161

62-
6362
Installation
64-
--------------
63+
------------
6564

6665
Prerequisites
6766
^^^^^^^^^^^^^
6867

6968
- **Conda Package Manager**: We recommend using Conda to manage the environment due to dependencies that may not be available via pip.
7069

7170
Installation Steps
72-
^^^^^^^^^^^^^^^^^^^
71+
^^^^^^^^^^^^^^^^^^
7372

7473
For macOS and Ubuntu
7574
""""""""""""""""""""
@@ -129,8 +128,6 @@ For Windows
129128
130129
4. **Install the Package**
131130

132-
Install the package in editable mode:
133-
134131
.. code-block:: bash
135132
136133
pip install -e .
@@ -142,7 +139,7 @@ For Windows
142139
Alternative Installation Using Pip Only
143140
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
144141

145-
If you prefer to use pip without Conda, you can install the package and its dependencies by compiling `requirements.in` into `requirements.txt`:
142+
If you prefer to use pip without Conda, you can install the package and its dependencies by compiling ``requirements.in`` into ``requirements.txt``:
146143

147144
.. code-block:: bash
148145
@@ -154,39 +151,44 @@ If you prefer to use pip without Conda, you can install the package and its depe
154151
pip install -r requirements.txt
155152
pip install -e .
156153
157-
158154
**Note**: This method may not install all dependencies correctly, especially if there are packages that are only available via Conda. We recommend using the Conda installation method for full functionality.
159155

160156
Compilers
161-
"""""""""""
157+
"""""""""
162158
A g++ compiler is required for the PyMC3 package.
163159

160+
164161
Usage
165-
-------
162+
-----
163+
164+
.. usage-begin
166165
167166
To get started with MIMIC, you can explore a variety of detailed examples and comprehensive documentation.
168167

169-
- **Documentation**: Visit our [complete documentation](https://yourdocumentationurl.com) for detailed guides and more.
170-
- **Examples**: Check out our [Examples Directory](https://github.com/ucl-cssb/MIMIC/tree/master/examples) which includes Jupyter notebooks demonstrating how to use MIMIC for different applications and scenarios.
168+
- **Documentation**: Visit our `complete documentation <https://ucl-cssb.github.io/MIMIC/>`_ for detailed guides and more.
169+
- **Examples**: Check out our `Examples Directory <https://github.com/ucl-cssb/MIMIC/tree/master/examples>`_ which includes Jupyter notebooks demonstrating how to use MIMIC for different applications and scenarios.
171170

172171
The documentation is regularly updated with the latest information on usage, features, and examples to help you effectively utilize the MIMIC package in your research or applications.
173172

173+
.. usage-end
174+
174175
Contributing
175-
-------------
176+
------------
176177

177-
We welcome contributions to the MIMIC project. Please refer to our `Contribution Guidelines <CONTRIBUTING.rst>`_ for more information.
178+
We welcome contributions to the MIMIC project. Please refer to our
179+
`Contribution Guidelines <CONTRIBUTING.rst>`_ for more information.
178180

179181
License
180-
--------
182+
-------
181183

182184
This project is licensed under the `LICENSE <LICENSE>`_.
183185

184186
Acknowledgements
185-
-----------------
187+
----------------
186188

187189
This project is based on methods proposed in `this paper <https://onlinelibrary.wiley.com/doi/full/10.1002/bies.201600188>`_.
188190

189191
Contact
190-
--------
192+
-------
191193

192194
For questions or feedback, please `contact us <mailto:christopher.barnes@ucl.ac.uk>`_.

docs/source/usage.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
Usage
33
=====
44

5-
To use MIMIC in a project::
6-
7-
import mimic
8-
9-
.. #FIXME: add the documentation from the tutorials here!
10-
11-
5+
.. include:: ../../README.rst
6+
:start-after: usage-begin
7+
:end-before: usage-end

mimic/model_infer/infer_VAR_bayes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def _run_inference_large(self, **kwargs) -> None:
279279
c2 = pm.InverseGamma("c2", 2, 8)
280280
tau = pm.HalfCauchy("tau", beta=tau0)
281281
lam = pm.HalfCauchy("lam", beta=1, shape=(ndim, ndim))
282-
A = pm.Normal('A', mu=A_prior_mu, sigma=tau * lam *
282+
A = pm.Normal('A', mu=A_prior_mu, sigma=tau * lam * \
283283
at.sqrt(c2 / (c2 + tau**2 * lam**2)), shape=(ndim, ndim))
284284

285285
# If noise covariance is provided, use it as a prior
@@ -438,14 +438,14 @@ def _run_inference_large_xs(self, **kwargs) -> None:
438438
c2_A = pm.InverseGamma("c2_A", 2, 1)
439439
tau_A = pm.HalfCauchy("tau_A", beta=tau0_A)
440440
lam_A = pm.HalfCauchy("lam_A", beta=1, shape=(nX, nX))
441-
Ah = pm.Normal('Ah', mu=A_prior_mu, sigma=tau_A * lam_A *
441+
Ah = pm.Normal('Ah', mu=A_prior_mu, sigma=tau_A * lam_A * \
442442
at.sqrt(c2_A / (c2_A + tau_A**2 * lam_A**2)), shape=(nX, nX))
443443

444444
tau0_B = (DB0 / (DB - DB0)) * 0.1 / np.sqrt(N)
445445
c2_B = pm.InverseGamma("c2_B", 2, 1)
446446
tau_B = pm.HalfCauchy("tau_B", beta=tau0_B)
447447
lam_B = pm.HalfCauchy("lam_B", beta=1, shape=(nS, nX))
448-
Bh = pm.Normal('Bh', mu=0, sigma=tau_B * lam_B *
448+
Bh = pm.Normal('Bh', mu=0, sigma=tau_B * lam_B * \
449449
at.sqrt(c2_B / (c2_B + tau_B**2 * lam_B**2)), shape=(nS, nX))
450450

451451
if noise_cov_prior is not None:

0 commit comments

Comments
 (0)