Code Monkey home page Code Monkey logo

pcntoolkit's Introduction

Predictive Clinical Neuroscience Toolkit

Gitter Documentation Status DOI

Predictive Clinical Neuroscience software toolkit (formerly nispat).

Methods for normative modelling, spatial statistics and pattern recognition. Documentation, including tutorials can be found on readthedocs. Click on the docs button above to visit the site.

Basic installation (on a local machine)

i) install anaconda3 ii) create enviornment with "conda create --name <env_name>" iii) activate environment by "source activate <env_name>" iv) install required conda packages

conda install pip pandas scipy

v) install PCNtoolkit (plus dependencies)

pip install pcntoolkit

Alternative installation (on a shared resource)

Make sure conda is available on the system. Otherwise install it first from https://www.anaconda.com/

conda --version

Create a conda environment in a shared location

conda create -y python==3.8.3 numpy mkl blas --prefix=/shared/conda/<env_name>

Activate the conda environment

conda activate /shared/conda/<env_name>

Install other dependencies

conda install -y pandas scipy 

Install pip dependencies

pip --no-cache-dir install nibabel sklearn torch glob3 

Clone the repo

git clone https://github.com/amarquand/PCNtoolkit.git

install in the conda environment

cd PCNtoolkit/
python3 setup.py install

Test

python -c "import pcntoolkit as pk;print(pk.__file__)"

Quickstart usage

For normative modelling, functionality is handled by the normative.py script, which can be run from the command line, e.g.

# python normative.py -c /path/to/training/covariates -t /path/to/test/covariates -r /path/to/test/response/variables /path/to/my/training/response/variables

For more information, please see the following resources:

pcntoolkit's People

Contributors

amarquand avatar augub avatar charfraza avatar hesterhuijsdens avatar lindenmp avatar maartenmennes avatar pbarkema avatar pierreberthet avatar sabryr avatar saigerutherford avatar smkia avatar

Forkers

tabeastraeten

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.