neuralib.atlas.brainrender.roi.RoiRenderCLI
- class neuralib.atlas.brainrender.roi.RoiRenderCLI[source]
Bases:
BrainRenderCLIROIs reconstruction with brainrender
- __init__()
Methods
__init__()export(reconstructor[, output, areas, alpha])Export reconstruction as html
get_atlas_brain_globe([check_latest])main([args, parse_only, system_exit])parsing the commandline input args and call
run().new_parser(**kwargs)create an
ArgumentParser.post_parsing()render()brainrender interactive
render_output()io handling.
run()called after
main().video_maker(output_file)generate video
Attributes
DEFAULT_REGION_COLORSparser description.
EPILOGparser epilog.
GROUP_OPTIONALGROUP_OUTPUTGROUP_REGIONGROUP_SETTINGSUSAGEparser usage.
annotationwhether draw point annotation.
backgroundbackground color (default: 'white')
camera_anglecamera angle (default: 'three_quarters')
csv output file from allenccf (default: None)
coordinate_spacewhich coordinate space, by default ccf (default: 'ccf')
points file as 'npy' or 'csv' (default: None)
hemispherewhich hemisphere for rendering the region (default: 'both')
inverse right/left maps to ipsi/contra hemisphere look up table (default: False)
loggerno_rootrender without root(brain) mesh (default: False)
only show the rois from the given source
outputoutput path for the html, if None, preview (default: None)
print_nameprint acronym and the corresponding name (default: False)
print_treeprint tree for the available regions for the given source (default: False)
each roi radius (default: 30)
if None, auto infer, and check the lowest merge level contain all the regions specified (default: None)
region_colorsregion(s) color (default: None)
regionsregion(s) name (default: ())
regions_alpharegion alpha value (default: 0.35)
region alpha value (default: 1)
colors of rois per region (default: ('orange', 'magenta', 'dimgray'))
only show rois in region(s) (default: ())
root_alpharoot alpha (default: 0.35)
shader_styleShader style to use (default: 'plastic')
sourceatlas source name.
source order to follow the roi_colors (default: None)
titletitle added to the top of the window (default: None)
tree_initinit region for the tree print (default: None)
video_outputvideo output path (default: None)
scene- DESCRIPTION: str | None = 'ROIs reconstruction with brainrender'
parser description. Could be override as a method if its content is dynamic-generated.
- DEFAULT_ROI_COLORS = ('orange', 'magenta', 'dimgray')
- GROUP_ROIS = 'ROI View Option'
- roi_region: str | tuple[str, ...]
only show rois in region(s) (default: ())
- radius: float
each roi radius (default: 30)
- roi_alpha: float
region alpha value (default: 1)
- roi_colors: str | tuple[str, ...]
colors of rois per region (default: (‘orange’, ‘magenta’, ‘dimgray’))
- region_col: str | None
if None, auto infer, and check the lowest merge level contain all the regions specified (default: None)
- inverse_lut: bool
inverse right/left maps to ipsi/contra hemisphere look up table (default: False)
- source_order: tuple[str, ...] | None
source order to follow the roi_colors (default: None)
- GROUP_ROIS_LOAD = 'ROI load Option'
- classifier_file: Path | None
csv output file from allenccf (default: None)
- only_source: tuple[str, ...] | None
only show the rois from the given source
- file: list[Path] | None
points file as ‘npy’ or ‘csv’ (default: None)