public class AllenUtils extends Object
AllenCompartment
sModifier and Type | Field and Description |
---|---|
protected static int |
BRAIN_ROOT_ID |
static String |
VERSION
The version of the Common Coordinate Framework currently used by SNT
|
Modifier and Type | Method and Description |
---|---|
static void |
assignHemisphereTags(DirectedWeightedGraph graph) |
static void |
assignHemisphereTags(Tree tree) |
static void |
assignToLeftHemisphere(Tree tree) |
static void |
assignToRightHemisphere(Tree tree) |
static SNTPoint |
brainCenter()
Returns the spatial centroid of the Allen CCF.
|
static int |
getAxisDefiningMidSagittalPlane()
Gets the axis defining mid sagittal plane.
|
protected static org.json.JSONObject |
getBrainAreasByStructureId() |
protected static org.json.JSONObject |
getBrainAreasByUUID() |
protected static org.json.JSONArray |
getBrainAreasList() |
static AllenCompartment |
getCompartment(int id)
Constructs a compartment from its CCF id
|
static AllenCompartment |
getCompartment(String nameOrAcronym)
Constructs a compartment from its CCF name or acronym
|
static int |
getHighestOntologyDepth()
Gets the maximum number of ontology levels in the Allen CCF.
|
static List<AllenCompartment> |
getOntologies()
Gets the Allen CCF as a flat (non-hierarchical) collection of ontologies.
|
static List<AllenCompartment> |
getOntologies(int depth,
boolean meshes)
Gets a flat (non-hierarchical) list of all the compartments of the specified
ontology depth.
|
static OBJMesh |
getRootMesh(ColorRGB color)
Retrieves the surface contours for the Allen Mouse Brain Atlas (CCF), bundled
with SNT.
|
static DefaultTreeModel |
getTreeModel(boolean meshesOnly)
Retrieves the Allen CCF hierarchical tree data.
|
static boolean |
isLeftHemisphere(double x,
double y,
double z) |
static boolean |
isLeftHemisphere(SNTPoint point)
Checks the hemisphere a reconstruction node belongs to.
|
static boolean |
isLeftHemisphere(Tree tree)
Checks the hemisphere a neuron belongs to.
|
static void |
main(String[] args) |
static List<DirectedWeightedSubgraph> |
splitByHemisphere(DirectedWeightedGraph graph) |
public static final String VERSION
protected static final int BRAIN_ROOT_ID
protected static org.json.JSONArray getBrainAreasList()
protected static org.json.JSONObject getBrainAreasByStructureId()
protected static org.json.JSONObject getBrainAreasByUUID()
public static AllenCompartment getCompartment(int id)
id
- the integer identifierpublic static AllenCompartment getCompartment(String nameOrAcronym)
nameOrAcronym
- the name or acronym (case insensitive) identifying the
compartmentpublic static void assignToLeftHemisphere(Tree tree)
public static void assignToRightHemisphere(Tree tree)
public static boolean isLeftHemisphere(Tree tree)
tree
- the Tree to be testedpublic static void assignHemisphereTags(DirectedWeightedGraph graph)
public static int getAxisDefiningMidSagittalPlane()
public static void assignHemisphereTags(Tree tree)
public static List<DirectedWeightedSubgraph> splitByHemisphere(DirectedWeightedGraph graph)
public static boolean isLeftHemisphere(SNTPoint point)
point
- the pointpublic static boolean isLeftHemisphere(double x, double y, double z)
public static SNTPoint brainCenter()
public static int getHighestOntologyDepth()
public static DefaultTreeModel getTreeModel(boolean meshesOnly)
meshesOnly
- Whether only compartments with known meshes should be
includedpublic static List<AllenCompartment> getOntologies()
public static List<AllenCompartment> getOntologies(int depth, boolean meshes)
depth
- the ontology depthmeshes
- If true, only compartments with known meshes are retrievedpublic static OBJMesh getRootMesh(ColorRGB color)
color
- the color to be assigned to the meshpublic static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.