Coder Social home page Coder Social logo

slieped / pysustain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ucl-pond/pysustain

0.0 1.0 0.0 2.7 MB

Subtype and Stage Inference (SuStaIn) algorithm with an example using simulated data.

License: MIT License

Python 40.06% Jupyter Notebook 59.94%

pysustain's Introduction

pySuStaIn

Subtype and Stage Inference, or SuStaIn, is an algorithm for discovery of data-driven groups or "subtypes" in chronic disorders. This repository is the Python implementation of SuStaIn, with the option to describe the subtype progression patterns using either the event-based model or the piecewise linear z-score model.

Acknowledgement

If you use pySuStaIn, please cite the following core papers:

  1. The original SuStaIn paper
  2. The pySuStaIn software paper

Please also cite the corresponding progression pattern model you use:

  1. The piecewise linear z-score model (i.e. ZscoreSustain)
  2. The event-based model (i.e. MixtureSustain) with Gaussian mixture modelling or kernel density estimation).

Thanks a lot for supporting this project.

Installation

Install option 1: direct install from repository

pip install git+https://github.com/ucl-pond/pySuStaIn

Install option 2: clone repository, install locally (deprecated)

In main pySuStaIn directory (where you see setup.py, README.txt, LICENSE.txt and all subfolders), run:

pip install  .

This will install everything listed in requirements.txt, including the awkde package (used for mixture modelling). During the installation of awkde, an error may appear, but then the installation should continue and be successful. Note that you need pip version 18.1+ for this installation to work.

Troubleshooting

If the above install breaks, you may have some interfering packages installed. One way around this would be to create a new Anaconda environment that uses Python 3.7, then activate it and repeat the installation steps above. To do this, download and install Anaconda, then run:

conda create  --name sustain_env python=3.7
conda activate sustain_env

To create an environment named sustain_env.

Dependencies

Parallelisation

  • Added parallelized startpoints

Running different SuStaIn implementations

sustainType can be set to:

  • mixture_GMM : SuStaIn with an event-based model progression pattern, with Gaussian mixture modelling of normal/abnormal.
  • mixture_KDE: SuStaIn with an event-based model progression pattern, with Kernel Density Estimation (KDE) mixture modelling of normal/abnormal.
  • zscore: SuStaIn with a piecewise linear z-score model progression pattern.

See simrun.py for examples of how to run these different implementations.

SuStaIn Tutorial

See the jupyter notebook in the notebooks folder for a tutorial on how to use SuStaIn using simulated data.

Papers

Methods:

Applications:

Funding

This project has received funding from the European Union’s Horizon 2020 Research and Innovation Programme under Grant Agreements 666992. Application of SuStaIn to multiple sclerosis was supported by the International Progressive MS Alliance (IPMSA, award reference number PA-1603-08175).

Quotes

(The authors) have also persuaded me that (SuStaIn is) as clever as e.g. Heiko Braak's brain, (and) can infer longitudinal trajectories based on cross-sectional observations.

  • Anonymous reviewer

pysustain's People

Contributors

pawij avatar sea-shunned avatar ayoung11 avatar armaneshaghi avatar noxtoby avatar ahmedhshahin avatar marestarellas avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.