public class AllenCompartment extends Object implements BrainAnnotation
ANY_HEMISPHERE, LEFT_HEMISPHERE, RIGHT_HEMISPHERE
Modifier | Constructor and Description |
---|---|
|
AllenCompartment(int id)
Instantiates a new ARA annotation from its identifier.
|
protected |
AllenCompartment(org.json.JSONObject jsonObj,
UUID uuid) |
|
AllenCompartment(UUID uuid)
Instantiates a new ARA annotation from an UUID (as used by MouseLight's
database).
|
Modifier and Type | Method and Description |
---|---|
String |
acronym() |
String[] |
aliases() |
protected int |
depth() |
boolean |
equals(Object obj) |
AllenCompartment |
getAncestor(int level)
Gets the nth ancestor of this compartment.
|
List<AllenCompartment> |
getAncestors()
Gets the ancestor ontologies of this compartment as a flat (non-hierarchical)
list.
|
List<AllenCompartment> |
getChildren()
Gets the child ontologies of this compartment as a flat (non-hierarchical)
list.
|
List<AllenCompartment> |
getChildren(int level)
Gets the child ontologies of this compartment as a flat (non-hierarchical)
list.
|
OBJMesh |
getMesh() |
int |
getOntologyDepth()
Gets the ontology depth of this compartment.
|
AllenCompartment |
getParent()
Gets the parent of this compartment.
|
protected int |
getParentStructureId() |
protected String |
getStructureIdPath() |
List<AllenCompartment> |
getTreePath()
Gets the tree path of this compartment.
|
UUID |
getUUID() |
protected int |
graphOrder() |
int |
hashCode() |
int |
id() |
boolean |
isChildOf(BrainAnnotation childCompartment)
Assesses if this annotation is a child of a specified compartment.
|
boolean |
isMeshAvailable()
Checks whether a mesh is known to be available for this compartment.
|
boolean |
isParentOf(BrainAnnotation childCompartment)
Assesses if this annotation is the parent of the specified compartment.
|
static void |
main(String[] args) |
String |
name() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getHemisphereFlag
public AllenCompartment(UUID uuid)
uuid
- the ML UUID identifying the annotationpublic AllenCompartment(int id)
id
- the integer identifying the annotationprotected AllenCompartment(org.json.JSONObject jsonObj, UUID uuid)
protected int depth()
protected int graphOrder()
protected String getStructureIdPath()
protected int getParentStructureId()
public boolean isChildOf(BrainAnnotation childCompartment)
isChildOf
in interface BrainAnnotation
childCompartment
- the compartment to be testedparentCompartment
is not this
compartment and getTreePath()
contains
parentCompartment
public List<AllenCompartment> getTreePath()
getAncestors()
.public int getOntologyDepth()
getOntologyDepth
in interface BrainAnnotation
9
, has a depth of 8
).public AllenCompartment getParent()
getParent
in interface BrainAnnotation
public List<AllenCompartment> getAncestors()
getTreePath()
public AllenCompartment getAncestor(int level)
getAncestor
in interface BrainAnnotation
level
- the ancestor level as negative 1-based index. E.g., -1
retrieves the last ancestor (parent), -2
retrieves the
second to last, etc, all the way down to
-getOntologyDepth()
, which retrieves the root ontology
("Whole Brain")public List<AllenCompartment> getChildren()
public List<AllenCompartment> getChildren(int level)
level
- maximum depth that should be considered.public int id()
id
in interface BrainAnnotation
public String name()
name
in interface BrainAnnotation
public String acronym()
acronym
in interface BrainAnnotation
public String[] aliases()
aliases
in interface BrainAnnotation
public boolean isMeshAvailable()
isMeshAvailable
in interface BrainAnnotation
public OBJMesh getMesh()
getMesh
in interface BrainAnnotation
public boolean isParentOf(BrainAnnotation childCompartment)
isParentOf
in interface BrainAnnotation
childCompartment
- the compartment to be testedchildCompartment
is not this
compartment and is present in getChildren()
public UUID getUUID()
public static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.