Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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:

  1. nibabel
  2. scipy
  3. numpy
  4. tqdm

Change history

  • Version 1.0 (Dec 20, 2020). This is the first official release of the software.

Metadata

Release files for nsdcode 1.1.dev260054000

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

Source distribution (sdist)

Source distribution for nsdcode 1.1.dev260054000
File Size Uploaded Provenance Actions
nsdcode-1.1.dev260054000.tar.gz 911.7 kB Without provenance Details for nsdcode-1.1.dev260054000.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nsdcode 1.1.dev260054000
File Interpreter ABI Platform Actions
nsdcode-1.1.dev260054000-py3-none-any.whl Python 3 none any Details for nsdcode-1.1.dev260054000-py3-none-any.whl

Total release size: 930.7 kB

Release files / nsdcode-1.1.dev260054000.tar.gz

Download URL nsdcode-1.1.dev260054000.tar.gz
Size 911.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a2a6d7887d6a05f1572d5c718775b54f70a065675036af76d68ea305ae52ec5b
BLAKE2b-256 checksum
How to use checksums
61a77429af3622652fde70729bf133c558aea2affb84571c266c67de01531f2b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / nsdcode-1.1.dev260054000-py3-none-any.whl

Download URL nsdcode-1.1.dev260054000-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f747e6b420e2f8f389cfd1fe812d107aeb07a9e7eb3f4035778a4720b28d3930
BLAKE2b-256 checksum
How to use checksums
d1b07299bc1f65b6443b59fc1763dfa21cca9a79480b9161876daeec6d9bdb95
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for nsdcode 1.1.dev260054000

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.

Release history Release notifications | RSS feed

This release
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