pysnt.analysis.sholl.parsers package#

This module provides convenient access to SNT’s Sholl parser classes.

get_available_classes() List[str][source]#

Get list of all available Sholl parser classes.

This includes both curated classes (always loaded) and extended classes (loaded on-demand). Extended classes are discovered if not already loaded.

Returns:

List of available class names.

Return type:

List[str]

get_class(class_name: str) Any[source]#

Get a specific Sholl parser class by name.

This method provides access to both curated and extended classes. Extended classes are discovered and loaded on first access.

Parameters:

class_name (str) – Name of the class to retrieve.

Returns:

The requested SNT Sholl parser class.

Return type:

Java class

Raises:
  • KeyError – If the class is not available.

  • RuntimeError – If the JVM has not been started.

list_classes()[source]#

Print all available Sholl parser classes organized by tier.

get_curated_classes() List[str][source]#

Get list of curated classes that are always available for direct import.

Returns:

List of curated class names.

Return type:

List[str]

get_extended_classes() List[str][source]#

Get list of extended classes available via get_class().

This will trigger discovery if not already done.

Returns:

List of extended class names.

Return type:

List[str]

class ImageParser2D(*args, **kwargs)[source]#

Bases: object

Curated SNT class from analysis/sholl/parsers package with method signatures.

Available for direct import after JVM initialization. Call pysnt.initialize() before using this class.

See analysis_sholl_parsers_ImageParser2D_javadoc.

__init__(*args, **kwargs)[source]#

Placeholder constructor.

class ImageParser3D(*args, **kwargs)[source]#

Bases: object

Curated SNT class from analysis/sholl/parsers package with method signatures.

Available for direct import after JVM initialization. Call pysnt.initialize() before using this class.

See analysis_sholl_parsers_ImageParser3D_javadoc.

__init__(*args, **kwargs)[source]#

Placeholder constructor.

class TreeParser(*args, **kwargs)[source]#

Bases: object

Curated SNT class from analysis/sholl/parsers package with method signatures.

Available for direct import after JVM initialization. Call pysnt.initialize() before using this class.

See analysis_sholl_parsers_TreeParser_javadoc.

__init__(*args, **kwargs)[source]#

Placeholder constructor.