neuralib.atlas.brainrender.core.BrainRenderCLI
- class neuralib.atlas.brainrender.core.BrainRenderCLI[source]
Bases:
AbstractParserReconstruct a 3D brain view used brainrender module
- __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.render()brainrender interactive
io handling.
run()called after
main()video_maker(output_file)generate video
Attributes
parser description.
EPILOGparser epilog.
USAGEparser usage.
whether draw point annotation.
background color
camera angle
which coordinate space, by default ccf
which hemisphere for rendering the region
render without root(brain) mesh
output path for the html, if None, preview
print acronym and the corresponding name
print tree for the available regions for the given source
region(s) color
region(s) name
region alpha value
root alpha
Shader style to use
atlas source name.
title added to the top of the window
init region for the tree print
video output path
- DESCRIPTION: str = 'Reconstruct a 3D brain view used brainrender module'
parser description. Could be override as a method if its content is dynamic-generated.
- DEFAULT_REGION_COLORS = ['lightblue', 'pink', 'turquoise']
- GROUP_SETTINGS = 'Basic Settings Option'
- camera_angle: Literal['sagittal', 'sagittal2', 'frontal', 'top', 'top_side', 'three_quarters']
camera angle
- shader_style: Literal['metallic', 'cartoon', 'plastic', 'shiny', 'glossy']
Shader style to use
- title: str | None
title added to the top of the window
- source: str
atlas source name. allen_human_500um as human
- root_alpha: float
root alpha
- no_root: bool
render without root(brain) mesh
- background: Literal['white', 'black']
background color
- coordinate_space: Literal['ccf', 'brainrender']
which coordinate space, by default ccf
- GROUP_OPTIONAL = 'Optional Option'
- annotation: tuple[str, ...] | None
whether draw point annotation. e.g., 1.5:1:0.4,-3.2:0.8:0.4 for two points
- GROUP_REGION = 'Region Option'
- regions: str | tuple[str, ...]
region(s) name
- region_colors: str | tuple[str, ...] | None
region(s) color
- regions_alpha: float
region alpha value
- hemisphere: Literal['right', 'left', 'both']
which hemisphere for rendering the region
- print_tree: bool
print tree for the available regions for the given source
- tree_init: str | None
init region for the tree print
- print_name: bool
print acronym and the corresponding name
- GROUP_OUTPUT = 'Output Option'
- video_output: Path | None
video output path
- output: Path | None
output path for the html, if None, preview
- scene: Scene
- logger = <RootLogger root (IO)>
- classmethod export(reconstructor, output=None, areas=None, alpha=0.15)[source]
Export reconstruction as html
- Parameters:
reconstructor (Self | None) – BrainRenderReconstructor if use the current scene, and –output cli. Otherwise, general func usage
output (Path | None) – output file path
areas (list[str] | None) – list of area(s)
alpha (float) – brain region alpha