Library Architecture

Library modules

NeuroSTR is structured in five heavily interrelated modules:

Core

The core module is the angular stone of the library, as its name suggests. It contains all classes described in the Data model section, as well as other additional functionality such as the basic geometry functions, properties, log, etc. All core functionality is in the namespace neurostr. Please make yourself familiar with the core module before trying to use the library, you will need it.

What's in the core module?:

  • Property map classes - property.h/c
  • Log functions - log.h/c
  • Geometry functions - geometry.h/c
  • Node class - node.h/c
  • Branch class - branch.h/c
  • Neurite class and neurite type enumeration - neurite.h/c, neurite_type.h
  • Neuron class - neuron.h/c
  • Contour class - contour.h/c
  • Tree class (from: tree.hh ) - tree.hh
  • Template traits - traits.h

IO

The input/output module contains the classes that read/write files containing reconstructions. All IO functionality is in the namespace neurostr::io. There are parsers for the SWC, Neurolucida ASCII, Neurolucida DAT and JSON formats, and writers for the SWC and JSON formats. For more information about the module and its functionality check out the Input/output section.

What's in the io module?:

  • Parser abstract class - parser.h , parser_dispatcher.h
  • Neurolucida auxiliar structures - nl_structure.h
  • SWC Parser - SWCParser.h/c
  • SWC Writer - SWCWriter.h/c
  • Neurolucida ASCII Parser - ASCParser.h/c
  • Neurolucida DAT Parser - DATParser.h/c
  • JSON Parser - JSONParser.h/c
  • JSON Writer - JSONWriter.h/c

Selectors

A selector is a function that takes one or more elements of a neuron, and return other elements of that same neuron. An example can be a selector that given a branch, returns its root node. All selector-related functions and classes are in the namespace neurostr::selector. Please check the module documentation in the Selector section.

What's in the selector module?:


Measures

A measure is a function that given one or several elements of a neuron, return a value based on the input, the measure. An example can be a measure that given a branch, returns its total length. All measure-related functions and classes are in the namespace neurostr::measure. Please check the module documentation in the Measure section.

What's in the selector module?: