Skip to content, Skip to search

Changes

Sholl Analysis

26 bytes added, 12:06, 1 April 2016
Correct new package path
;Python example: Display only the main ''[[#Metrics|Sholl Table]]'', ignoring remaining outputs
<source lang="python">
import sholl.Sholl_Analysis as sa
sa.setNoPlots(True) # Exclude plots from output
sa.setNoTable(True) # Exclude detailed table from output
;Java/BeanShell example: Display plots without annotations
<source lang="java">
import sholl.Sholl_Analysis;Sholl_Analysis.setPlotLabels(true) ; // Exclude plot labels
</source>
;IJ macro language example: Exclude plots and reduce the number of discretization steps involved in the calculation of [[#MeanValueOfFunction|Nav]], and [[#CriticalValue|Cv]], [[#CriticalRadius|Cr]]:
<source lang="java">
call("sholl.Sholl_Analysis.setNoPlots", "true"); // Exclude plots from outputcall("sholl.Sholl_Analysis.setPrecision", "100"); // Default is 1000, ie, 1/1000 of radius step size
</source>
Note that the IJM built-in [http://imagej.nih.gov/ij/developer/macro/functions.html#call call("class.method")] function can only pass strings to Java methods. For this reason, you have to quote the passed argument. <tt>Sholl_Analysis</tt> will then parse the string argument and interpreter its value.
Emailconfirmed
1,643
edits