Giter VIP home page Giter VIP logo

nwb_packaging_subject_capsule's Introduction

Export subject to NWB

NWB_Packaging_Subject_Capsule

Description

This simple capsule is designed to create an NWB file with basic subject and session information.

Inputs

The data/ folder must include the session dataset and optionally the following JSON files:

  • subject.json: Subject information following the aind-data-schema specification
  • data_description.json: session information following the aind-data-schema specification

The data_description.json is only used to access the name field, which is used as session name. An minimal example data_description.json file:

{
    "name": "my-awesome-session-name"
}

If these files are missing, a mock NWB file is created.

If the data/ folder includes an NWB file, this is copied to the results folder.

Parameters

The code/run script takes 2 arguments:

  --backend {hdf5,zarr}
                        NWB backend. It can be either 'hdf5' or 'zarr'.
  --asset-name ASSET_NAME
                        Path to the data asset of the session. When provided, the metadata are fetched from the AIND metadata database. If None, and the attached data asset is used to fetch relevant metadata.

The --asset-name input is only used at AIND to fetch metadata from the database.

Output

The output of this capsule is a NWB file in the results/ folder named: {session_name}.nwb

In case the data/ folder contains a single NWB file, this is copied to the results with the same name.

nwb_packaging_subject_capsule's People

Contributors

alejoe91 avatar ahad-allen avatar

Watchers

David Feng avatar  avatar

nwb_packaging_subject_capsule's Issues

Try Zarr output for NWB capsule

I modified the subject capsule to generate a Zarr output nwb. The change is merely changing the import for which io to use for reading/writing the nwb file to the zarrnwbio. We will need to look into how to explore the data in the file and validate it. Also, it may not be supported for embargoed data yet.

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.