Class DrosophilaUtils

java.lang.Object
sc.fiji.snt.annotation.DrosophilaUtils

public final class DrosophilaUtils extends Object
Utility methods for accessing the Drosophila adult brain ontology derived from FBbt (Drosophila Anatomy Ontology).
Author:
Tiago Ferreira
  • Field Details

    • BRAIN_ROOT_ID

      public static final int BRAIN_ROOT_ID
      Root 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

      public static DrosophilaCompartment getCompartment(int id)
      Returns a DrosophilaCompartment for the given FBbt numeric ID.
      Parameters:
      id - the numeric FBbt ID (e.g., 3624 for "adult brain")
      Returns:
      the compartment, or null if not found
    • getAllCompartments

      public static Collection<DrosophilaCompartment> getAllCompartments()
      Returns all compartments in the ontology.
      Returns:
      an unmodifiable collection of all compartments
    • getTreeModel

      public static DefaultTreeModel getTreeModel()
      Builds a DefaultTreeModel representing the Drosophila adult brain ontology hierarchy.
      Returns:
      the tree model