Skip to main content
Travis CI build status Documentation Status

Nighres

Nighres is a Python package for processing of high-resolution neuroimaging data. It developed out of CBS High-Res Brain Processing Tools and aims to make those tools easier to install, use and extend. Nighres now includes new functions from the IMCN imaging toolkit and additional packages may be added in future releases.

Because parts of the package have to be built locally it is currently not possible to use pip install directly from PyPI. Instead, please follow the installation instructions provided at http://nighres.readthedocs.io/en/latest/installation.html

Currently, Nighres is developed and tested on Linux Ubuntu Trusty and Python 3.5. Release versions have been extensively tested on our example data. Development versions include additional modules and functions but with limited guarantees.

Required packages

In order to run Nighres, you will need:

  • python >= 3.5

  • Java JDK >= 1.7

  • JCC >= 3.0

For instance, in Debian/Ubuntu (amd64 systems):

sudo apt-get install openjdk-8-jdk export JCC_JDK=/usr/lib/jvm/java-8-openjdk-amd64 python3 -m pip install jcc (or just pip install jcc if Python 3 is your default)

For some functionalities you need extra packages

  • Nipype & ANTs (for registration using ANTs)

  • Pandas (for working with surface meshes)

  • Nilearn (for plotting in the examples)

If you use nighres, please reference the publictation:

Huntenburg JM, Steele CJ, Bazin P-L (2018) Nighres: processing tools for high-resolution neuroimaging. Gigascience 7 Available at: https://academic.oup.com/gigascience/article/7/7/giy082/5049008

Docker

To quickly try out nighres in a preset, batteries-included environment, you can use the included Dockerfile, which includes Ubuntu 14 Trusty, openJDK-8, nighres, and Jupyter Notebook. The only thing you need to install is Docker, a lightweight container platform that runs on Linux, Windows and Mac OS X.

To build the Docker image, do the following:

git clone https://github.com/nighres/nighres
cd nighres
docker build . -t nighres

To run the Docker container:

docker run --rm -p 8888:8888 nighres

Now go with your browser to https://localhost:8888 to start a notebook. You should be able to import nighres by entering:

import nighres

into the first cell of your notebook.

Usually you also want to have access to some data when you run nighres. You can grant the Docker container access to a data folder on your host OS by using the -v tag when you start the container:

docker run --rm -v /home/me/my_data:/data -p 8888:8888 nighres

Now, in your notebook you will be able to access your data on the path /data

Metadata

Release files for nighres 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nighres 1.2.0
File Size Uploaded Provenance
nighres-1.2.0.tar.gz 16.4 MB Without provenance Details

Release files / nighres-1.2.0.tar.gz

Download URL nighres-1.2.0.tar.gz
Size 16.4 MB
Tags Source
SHA-256 checksum
How to use checksums
02a243a701ac967a1e17fa28f99bfe1da76b7c335b0079c87b69589e1f959533
BLAKE2b-256 checksum
How to use checksums
3845e6dc3ffe7cde9744615cca6bf791e508be8eceff3e127674246148d2dccf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.10.0 pkginfo/1.2.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.9

Security for nighres 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page