You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cc3102e
Browse filesBrowse the repository at this point in the historyBrowse files
""" Initialization function should take in just in the parameters for the observations that comprise the multivariate random variable emission they expect their data to have. """
@@ -73,7 +75,7 @@ The variables `gamma_obs_censor` and `norm_obs_censor` are created and set to 1
73
75
We do the censoring later.
74
76
The rvs function returns the observed phenotypes as a tuple of lists.
75
77
76
-
.. code:: ipython3
78
+
.. code:: python
77
79
78
80
# Bernoulli/Gamma
79
81
defrvs(self, size: int):
@@ -86,7 +88,8 @@ The rvs function returns the observed phenotypes as a tuple of lists.
86
88
# These tuples of observations will go into the cells in the lineage tree.
87
89
return bern_obs, gamma_obs, gamma_obs_censor
88
90
89
-
.. code:: ipython3
91
+
.. code:: python
92
+
90
93
# Normal
91
94
defrvs(self, size): # user has to identify what the multivariate (or univariate if he or she so chooses) random variable looks like
92
95
""" User-defined way of calculating a random variable given the parameters of the state stored in that observation's object. """
@@ -117,7 +120,8 @@ The fully observed cells are fed to `logpdf` to calculate the likelihood,
117
120
and those cells that have missing information are fed to `logsf`.
118
121
Those cells that died are then removed in the first example that cell's fate matters.
119
122
120
-
.. code:: ipython3
123
+
.. code:: python
124
+
121
125
# Bernoulli/Gamma
122
126
deflogpdf(self, x: np.ndarray):
123
127
""" User-defined way of calculating the likelihood of the observation stored in a cell.
@@ -138,7 +142,8 @@ Those cells that died are then removed in the first example that cell's fate mat
138
142
139
143
return ll
140
144
141
-
.. code:: ipython3
145
+
.. code:: python
146
+
142
147
# Normal
143
148
deflogpdf(self, tuple_of_obs): # user has to define how to calculate the likelihood
144
149
""" User-defined way of calculating the likelihood of the observation stored in a cell. """
@@ -173,7 +178,7 @@ minimize function of the scipy.optimize to find the parameters and
173
178
the function is located in the lineage/states/stateCommon.py
174
179
175
180
176
-
.. code:: ipython3
181
+
.. code:: python
177
182
178
183
# Bernoulli/Gamma
179
184
defestimator(self, x: list, gammas: np.array):
@@ -201,7 +206,8 @@ the function is located in the lineage/states/stateCommon.py
Copy file name to clipboardExpand all lines: docs/system-reqs.rst
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,4 +22,7 @@ OS requirements
22
22
23
23
Python dependencies
24
24
-------------------
25
-
`tHMM` requires `virtualenv`. All other required packages can then be installed using `make venv` to establish a virtual environment. The Python packages that will be installed are listed in `requirements.txt`, and can be directly installed using `pip install -r requirements.txt`.
25
+
`tHMM` requires Python >=3.10 and is built and managed with `uv <https://docs.astral.sh/uv/>`_.
26
+
Once `uv` is installed, all required packages can be installed into a project-local
27
+
virtual environment with ``uv sync``, run from the root of the repository.
28
+
The package's dependencies are listed in ``pyproject.toml``.
0 commit comments