Skip to content, Skip to search

Changes

SNT: Python Notebooks

359 bytes added, 11 April
Getting Started
Now you can access all the attributes and methods these classes offer. Let's get a summary of the inter-node distances for a specific mouse cortical motor neuron (UUID = "AA0100" in the MouseLight database).
<source lang="python">
loader = MouseLightLoader("AA0100") # one of the largest cells in the databaseif not loader.isDatabaseAvailable(): ui.showDialog("Could not connect to ML database", "Error") returnif not loader.idExists(): ui.showDialog("Somehow the specified id was not found", "Error") return a_tree = loader.getTree('axon', None) # compartment, colord_stats = TreeStatistics(treea_tree)
metric = TreeStatistics.INTER_NODE_DISTANCE
summary_stats = d_stats.getSummaryStats(metric)
663
edits