Code Monkey home page Code Monkey logo

ndx-ontology-table's People

Contributors

bendichter avatar

Watchers

 avatar  avatar

ndx-ontology-table's Issues

How to identify fields in the NWB file

We need a way to uniquely identify elements in the NWBFile so that we can say what the URIs are mapping to within the file. Let's define what features this needs to support.

  1. We definitely need to support string types. Are there any other types we need to support? Would it make sense to map a numerical value to a URI? I am leaning towards "no", but I could be convinced otherwise.
  2. We definitely need to support datasets, but do we also need to support attributes? I am leaning towards "no."
  3. Values in a vector/ regions of a vector. For instance, a Units.cell_type VectorData object might have 30 elements, some of which are "mossy fiber" and some of them "pyramidal" and some "unknown". We should be able to refer to map these specific terms to URIs.

What type of data relationship to we use to identify the fields that are being mapped

  1. HDF5 Object Ref ints.
    Cons:

    • These will only be present for HDF5 files, and if we are using another backend they won't work. I'd rather this not be reliant on a specific backend.
    • Attributes are not given Object Ref ints, so this approach would not support attributes.
    • I don't actually know how to expose this int using h5py.
  2. Object references/ region references.
    Pros:

    • It seems appropriate to use references for this.
    • automatic validation
    • If we use region references, this supports regions of datasets.

    Cons:

    • I don't think it supports attributes
    • It may be a bit awkward if the references auto-resolve.
    • This is probably going to be difficult in pynwb
  3. NWB assigns uuids to each instance of a neurodata_type.
    Pros:

    • Will work the same across different backends
    • Will work for attributes

    Cons:

    • Since the uuid is on the neurodata_type but not its fields, we'll need to add extra steps in order to specify the fields that we are trying to map

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.