Package sc.fiji.snt.annotation
Class DrosophilaUtils
java.lang.Object
sc.fiji.snt.annotation.DrosophilaUtils
Utility methods for accessing the Drosophila adult brain ontology
derived from FBbt (Drosophila Anatomy Ontology).
- Author:
- Tiago Ferreira
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intRoot FBbt numeric ID for "adult brain". -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<DrosophilaCompartment> Returns all compartments in the ontology.static org.json.JSONArrayReturns the list of brain area entries from the bundled JSON.static DrosophilaCompartmentgetCompartment(int id) Returns aDrosophilaCompartmentfor the given FBbt numeric ID.static DefaultTreeModelBuilds aDefaultTreeModelrepresenting the Drosophila adult brain ontology hierarchy.
-
Field Details
-
BRAIN_ROOT_ID
public static final int BRAIN_ROOT_IDRoot FBbt numeric ID for "adult brain".- See Also:
-
-
Method Details
-
getBrainAreasList
public static org.json.JSONArray getBrainAreasList()Returns the list of brain area entries from the bundled JSON.- Returns:
- the JSON array of brain area objects
-
getCompartment
Returns aDrosophilaCompartmentfor the given FBbt numeric ID.- Parameters:
id- the numeric FBbt ID (e.g., 3624 for "adult brain")- Returns:
- the compartment, or
nullif not found
-
getAllCompartments
Returns all compartments in the ontology.- Returns:
- an unmodifiable collection of all compartments
-
getTreeModel
Builds aDefaultTreeModelrepresenting the Drosophila adult brain ontology hierarchy.- Returns:
- the tree model
-