GithubHelp home page GithubHelp logo

kjamison / nsdcode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cvnlab/nsdcode

0.0 1.0 0.0 1.36 MB

Code related to analyzing the Natural Scenes Dataset

License: BSD 2-Clause "Simplified" License

MATLAB 61.05% Python 38.95%

nsdcode's Introduction

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 simply use pip:

pip install nsdcode

or alternatively, clone this repo and install:

pip install -r requirements.txt
pip install .

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.

nsdcode's People

Contributors

iancharest avatar

Watchers

 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.