neuralib.atlas.brainrender.roi.RoiRenderCLI

class neuralib.atlas.brainrender.roi.RoiRenderCLI[source]

Bases: BrainRenderCLI

ROIs 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_COLORS

DEFAULT_ROI_COLORS

DESCRIPTION

parser description.

EPILOG

parser epilog.

GROUP_OPTIONAL

GROUP_OUTPUT

GROUP_REGION

GROUP_ROIS

GROUP_ROIS_LOAD

GROUP_SETTINGS

USAGE

parser usage.

annotation

whether draw point annotation.

background

background color (default: 'white')

camera_angle

camera angle (default: 'three_quarters')

classifier_file

csv output file from allenccf (default: None)

coordinate_space

which coordinate space, by default ccf (default: 'ccf')

file

points file as 'npy' or 'csv' (default: None)

hemisphere

which hemisphere for rendering the region (default: 'both')

inverse_lut

inverse right/left maps to ipsi/contra hemisphere look up table (default: False)

logger

no_root

render without root(brain) mesh (default: False)

only_source

only show the rois from the given source

output

output path for the html, if None, preview (default: None)

print_name

print acronym and the corresponding name (default: False)

print_tree

print tree for the available regions for the given source (default: False)

radius

each roi radius (default: 30)

region_col

if None, auto infer, and check the lowest merge level contain all the regions specified (default: None)

region_colors

region(s) color (default: None)

regions

region(s) name (default: ())

regions_alpha

region alpha value (default: 0.35)

roi_alpha

region alpha value (default: 1)

roi_colors

colors of rois per region (default: ('orange', 'magenta', 'dimgray'))

roi_region

only show rois in region(s) (default: ())

root_alpha

root alpha (default: 0.35)

shader_style

Shader style to use (default: 'plastic')

source

atlas source name.

source_order

source order to follow the roi_colors (default: None)

title

title added to the top of the window (default: None)

tree_init

init region for the tree print (default: None)

video_output

video 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)

run()[source]

called after main(). Used for runs the main execution logic of the object

render()[source]

brainrender interactive