Package bar :: Module sbaconverter
[hide private]
[frames] | no frames]

Module sbaconverter

The module provides class necessary to translate data from ScalableBrainAtlas to CAF dataset.

Import Graph
Import Graph

Classes [hide private]
  barSBAParser
Generic class for translating data from ScalableBrainAtlas to CAF dataset.
Functions [hide private]
str
cleanStructName(structName)
Provided acronyms are usually fine but sometimes they are not compatibile with 3dBar naming convention.
Variables [hide private]
  STRUCTURE_NAME_TEMPLATE = 'structure%d_label%d_%s'
  __package__ = 'bar'
Function Details [hide private]

cleanStructName(structName)

 

Provided acronyms are usually fine but sometimes they are not compatibile with 3dBar naming convention. Here we process them so they can pass 3dBAR name validataion.

Parameters:
  • structName (str) - initial sturcture name, potentially invalid
Returns: str
structure name transformed in the way that passes 3dBAR name validation