pyaging 0.6.0__tar.gz → 0.6.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyaging-0.6.0 → pyaging-0.6.2}/PKG-INFO +1 -1
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/__init__.py +1 -1
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_models.py +5 -8
- {pyaging-0.6.0 → pyaging-0.6.2}/.gitignore +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/LICENSE +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/README.md +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/pyproject.toml +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/data/__init__.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/data/_data.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/data/dnam_feature_medians.json.gz +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/data/feature_ranges.json +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/logger/__init__.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/logger/_live.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/logger/_logger.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/__init__.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_author_extensions.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_base_models.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_organage.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_paopac.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_pc_extensions.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_proteoclock.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/models/_replication.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/predict/__init__.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/predict/_cache.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/predict/_pred.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/predict/_pred_utils.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/predict/_transforms.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/preprocess/__init__.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/preprocess/_preprocess.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/preprocess/_preprocess_utils.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/preprocess/_tage.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/py.typed +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/utils/__init__.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/utils/_feature_ranges.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/utils/_files.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/utils/_hf.py +0 -0
- {pyaging-0.6.0 → pyaging-0.6.2}/src/pyaging/utils/_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pyaging
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.2
|
|
4
4
|
Summary: A Python-based compendium of GPU-optimized aging clocks.
|
|
5
5
|
Project-URL: homepage, https://github.com/lucascamillomd/pyaging
|
|
6
6
|
Project-URL: repository, https://github.com/lucascamillomd/pyaging
|
|
@@ -1725,14 +1725,11 @@ class PhenoAge(pyagingModel):
|
|
|
1725
1725
|
|
|
1726
1726
|
def postprocess(self, x):
|
|
1727
1727
|
"""Convert the fitted log hazard to clinical Phenotypic Age in years."""
|
|
1728
|
-
#
|
|
1729
|
-
#
|
|
1730
|
-
# mortality to zero or one
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
gamma = 0.0076927
|
|
1734
|
-
log_scale = math.log(0.00553 * math.expm1(120 * gamma) / gamma)
|
|
1735
|
-
return 141.50225 + (x + log_scale) / 0.090165
|
|
1728
|
+
# Kuo et al. (2021), section 4.3, doi:10.1111/acel.13376.
|
|
1729
|
+
# Substitute the negative Gompertz hazard for log(1 - mortality).
|
|
1730
|
+
# Cancel log(exp(xb)) before mortality can round to zero or one.
|
|
1731
|
+
log_scaled_hazard = x + math.log(0.00553 * 1.51714 / 0.0076927)
|
|
1732
|
+
return 141.50 + log_scaled_hazard / 0.09165
|
|
1736
1733
|
|
|
1737
1734
|
|
|
1738
1735
|
class PhenoAgeSaoPaulo(pyagingModel):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|