Code Monkey home page Code Monkey logo

ndx-task's Introduction

ndx-task Extension for NWB:N

python

Installation

pip install git+https://github.com/catalystneuro/ndx-task.git

Usage

Task parameters:
    name (:py:class:`~str`): the name of this container
    description (:py:class:`~str`): describe the task
    category (:py:class:`~str`): free category field
    auditory (:py:class:`~bool`): experiment involves auditory stimuli
    visual (:py:class:`~bool`): experiment involves visual stimuli
    decision (:py:class:`~bool`): experiment involves decision making
    navigation (:py:class:`~bool`): experiment involves a navigation task
    rest (:py:class:`~bool`): experiment involves no task or stimuli
    motor (:py:class:`~bool`): experiment involves a fine motor task
    olfactory (:py:class:`~bool`): experiment involves olfactory stimuli
    speech production (:py:class:`~bool`): experiment involves speaking
    speech perception (:py:class:`~bool`): experiment involves listening to speech
from ndx_task import Task, Tasks

from pynwb import NWBHDF5IO, NWBFile
from datetime import datetime

task1 = Task(name='rest', description='animal is resting', rest=True)
task2 = Task(
    name='theta_maze',
    description='animal is doing an figure-8 task in the theta maze',
    navigation=True)

tasks = Tasks(name='tasks', tasks=[task1, task2])

session_start_time = datetime.now().astimezone()
nwb = NWBFile('session_description', 'identifier', session_start_time)

nwb.add_lab_meta_data(tasks)

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.