https://github.com/aramis-lab/leaspy
LEArning Spatiotemporal Patterns in Python
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.4%) to scientific vocabulary
Repository
LEArning Spatiotemporal Patterns in Python
Basic Info
- Host: GitHub
- Owner: aramis-lab
- License: bsd-3-clause
- Language: Python
- Default Branch: master
- Size: 17.7 MB
Statistics
- Stars: 6
- Watchers: 4
- Forks: 8
- Open Issues: 56
- Releases: 9
Metadata Files
README.md
Leaspy - LEArning Spatiotemporal Patterns in Python
Leaspy is a software package for the statistical analysis of longitudinal data, particularly medical data that comes in a form of repeated observations of patients at different time-points.
Get started Leaspy
Installation
Leaspy requires Python >= 3.9, < 3.13.
Whether you wish to install a released version of Leaspy, or to install its development version, it is highly recommended to use a virtual environment to install the project and its dependencies.
There exists multiple solutions for that, the most common option is to use conda:
bash
conda create --name leaspy python=3.10
conda activate leaspy
Install a released version
To install the latest version of Leaspy:
bash
pip install leaspy
Install in development mode
If you haven't done it already, create and activate a dedicated environment (see the beginning of the installation section).
Clone the repository
To install the project in development mode, you first need to get the source code by cloning the project's repository:
bash
git clone git@gitlab.com:icm-institute/aramislab/leaspy.git
cd leaspy
Install poetry
This project relies on poetry that you would need to install (see the official instructions).
It is recommended install it in a dedicated environment, separated from the one in which you will install Leaspy and its dependencies. One possibility is to install it with a tool called pipx.
If you don't have pipx installed, already, you can follow the official installation guidelines.
In short, you can do:
bash
pip install pipx
pipx ensurepath
pipx install poetry
Install Leaspy and its dependencies
Install leaspy in development mode:
bash
poetry install
Install the pre-commit hook
Once you have installed Leaspy in development mode, do not forget to install the pre-commit hook in order to automatically format and lint your commits:
bash
pipx install pre-commit
pre-commit install
Documentation
Available online at Readthedocs.io
Examples & Tutorials
The example/start/ folder contains a starting point if you want to launch your first scripts and notebook with the Leaspy package.
You can find additional walkthroughs in:
- this series of online tutorials from 2020
- this Medium post of 2019 (warning: the plotter and the individual parameters described there have been deprecated since then)
Description
Leaspy is a software package for the statistical analysis of longitudinal data, particularly medical data that comes in a form of repeated observations of patients at different time-points. Considering these series of short-term data, the software aims at : - recombining them to reconstruct the long-term spatio-temporal trajectory of evolution - positioning each patient observations relatively to the group-average timeline, in terms of both temporal differences (time shift and acceleration factor) and spatial differences (different sequences of events, spatial pattern of progression, ...) - quantifying impact of cofactors (gender, genetic mutation, environmental factors, ...) on the evolution of the signal - imputing missing values - predicting future observations - simulating virtual patients to un-bias the initial cohort or mimics its characteristics
The software package can be used with scalar multivariate data whose progression can be modelled by a logistic shape, an exponential decay or a linear progression. The simplest type of data handled by the software are scalar data: they correspond to one (univariate) or multiple (multivariate) measurement(s) per patient observation. This includes, for instance, clinical scores, cognitive assessments, physiological measurements (e.g. blood markers, radioactive markers) but also imaging-derived data that are rescaled, for instance, between 0 and 1 to describe a logistic progression.
Main features
fit: determine the population parameters that describe the disease progression at the population levelpersonalize: determine the individual parameters that characterize the individual scenario of biomarker progressionestimate: evaluate the biomarker values of a patient at any age, either for missing value imputation or future predictionsimulate: generate synthetic data from the model
Further information
More detailed explanations about the models themselves and about the estimation procedure can be found in the following articles :
- Mathematical framework: A Bayesian mixed-effects model to learn trajectories of changes from repeated manifold-valued observations. Jean-Baptiste Schiratti, Stéphanie Allassonnière, Olivier Colliot, and Stanley Durrleman. The Journal of Machine Learning Research, 18:1–33, December 2017. Open Access.
- Application to imaging data: Statistical learning of spatiotemporal patterns from longitudinal manifold-valued networks. I. Koval, J.-B. Schiratti, A. Routier, M. Bacci, O. Colliot, S. Allassonnière and S. Durrleman. MICCAI, September 2017. Open Access
- Application to imaging data: Spatiotemporal Propagation of the Cortical Atrophy: Population and Individual Patterns. Igor Koval, Jean-Baptiste Schiratti, Alexandre Routier, Michael Bacci, Olivier Colliot, Stéphanie Allassonnière, and Stanley Durrleman. Front Neurol. 2018 May 4;9:235. Open Access
- Application to data with missing values: Learning disease progression models with longitudinal data and missing values. R. Couronne, M. Vidailhet, JC. Corvol, S. Lehéricy, S. Durrleman. ISBI, April 2019. Open Access
- Intensive application for Alzheimer's Disease progression: AD Course Map charts Alzheimer's disease progression, I. Koval, A. Bone, M. Louis, S. Bottani, A. Marcoux, J. Samper-Gonzalez, N. Burgos, B. Charlier, A. Bertrand, S. Epelbaum, O. Colliot, S. Allassonniere & S. Durrleman, Scientific Reports, 2021. 11(1):1-16 Open Access
- www.digital-brain.org: website related to the application of the model for Alzheimer's disease
- Disease Course Mapping webpage by Igor Koval
License
The package is distributed under the BSD 3-Clause license.
Support
The development of this software has been supported by the European Union H2020 program (project EuroPOND, grant number 666992, project HBP SGA1 grant number 720270), by the European Research Council (to Stanley Durrleman project LEASP, grant number 678304) and by the ICM Big Brain Theory Program (project DYNAMO).
Contact
Owner
- Name: ARAMIS Lab
- Login: aramis-lab
- Kind: organization
- Location: Paris, France
- Website: www.aramislab.fr
- Twitter: AramisLabParis
- Repositories: 21
- Profile: https://github.com/aramis-lab
The Aramis Lab is a joint research team between CNRS, Inria, Inserm and Sorbonne University and belongs to the Paris Brain Institute (ICM).
GitHub Events
Total
- Create event: 65
- Issues event: 285
- Release event: 7
- Watch event: 7
- Delete event: 55
- Issue comment event: 3,641
- Push event: 57
- Pull request review comment event: 437
- Pull request review event: 216
- Pull request event: 193
- Fork event: 8
Last Year
- Create event: 65
- Issues event: 285
- Release event: 7
- Watch event: 7
- Delete event: 55
- Issue comment event: 3,641
- Push event: 57
- Pull request review comment event: 437
- Pull request review event: 216
- Pull request event: 193
- Fork event: 8
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 274
- Total pull requests: 117
- Average time to close issues: over 2 years
- Average time to close pull requests: 7 days
- Total issue authors: 6
- Total pull request authors: 7
- Average comments per issue: 5.17
- Average comments per pull request: 2.95
- Merged pull requests: 45
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 56
- Pull requests: 117
- Average time to close issues: about 2 months
- Average time to close pull requests: 7 days
- Issue authors: 6
- Pull request authors: 7
- Average comments per issue: 3.46
- Average comments per pull request: 2.95
- Merged pull requests: 45
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- NicolasGensollen (261)
- caglayantuna (4)
- JulietteOrtholand (3)
- KaisaridiSofia (3)
- maylistran01 (1)
- lea-aguilhon (1)
Pull Request Authors
- NicolasGensollen (64)
- lea-aguilhon (17)
- caglayantuna (16)
- maylistran01 (9)
- KaisaridiSofia (5)
- GabrielleCasimiro (2)
- JulietteOrtholand (1)