NSD map data from various spaces
Project description
nsdcode
This repository contains nsd_mapdata.{m,py}, a light-weight utility that allows the user to map data between different reference spaces (e.g. anatomical, functional, volume-based, surface-based) in the NSD dataset. Both MATLAB and Python versions of the utility are provided.
For more information on the NSD dataset, please see http://naturalscenesdataset.org.
For examples of how to use nsd_mapdata, please take a look at examples_nsdmapdata.{m,py}.
Known issues:
- Note that the MATLAB and Python implementations give extremely similar but not numerically identical results due to differences in interpolation implementation. Also, voxels near the edges of valid locations are also handled slightly differently in the Python version.
- The Python version does not yet implement the anat-to-anat case.
MATLAB
The MATLAB implementation relies on a few external toolboxes that are provided in the matlab/external directory.
To install, unzip the matlab/external/*.zip files in place, and then
addpath(genpath('/path/to/nsdcode/matlab/'));
Because the utility relies on transformation files provided with the NSD dataset, the user must edit nsd_datalocation.m with the location of your local copy of the NSD dataset.
Python
To install:
cd python
python setup.py develop
Code dependencies:
There are some external dependencies which are listed in requirements.txt These are installed automatically when you run the setup above. These dependencies include:
- nibabel
- scipy
- numpy
- tqdm
Change history
- Version 1.0 (Dec 20, 2020). This is the first official release of the software.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nsdcode-1.1.dev260054000.tar.gz
.
File metadata
- Download URL: nsdcode-1.1.dev260054000.tar.gz
- Upload date:
- Size: 911.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2a6d7887d6a05f1572d5c718775b54f70a065675036af76d68ea305ae52ec5b |
|
MD5 | ab564a01c5affb8b5ac6624641944ad7 |
|
BLAKE2b-256 | 61a77429af3622652fde70729bf133c558aea2affb84571c266c67de01531f2b |
File details
Details for the file nsdcode-1.1.dev260054000-py3-none-any.whl
.
File metadata
- Download URL: nsdcode-1.1.dev260054000-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f747e6b420e2f8f389cfd1fe812d107aeb07a9e7eb3f4035778a4720b28d3930 |
|
MD5 | cfa70d6c276ea4e450ad33300eff3cd3 |
|
BLAKE2b-256 | d1b07299bc1f65b6443b59fc1763dfa21cca9a79480b9161876daeec6d9bdb95 |