Class InsectBrainLoader

java.lang.Object
sc.fiji.snt.io.InsectBrainLoader

public class InsectBrainLoader extends Object
Methods for retrieving reconstructions and annotations from the Insect Brain Database at insectbraindb.org *
Author:
Cameron Arshadi, Tiago Ferreira
  • Constructor Details

    • InsectBrainLoader

      public InsectBrainLoader(int id)
      Constructs a new InsectBrainLoader for the specified neuron ID.
      Parameters:
      id - the neuron ID to load
  • Method Details

    • isDatabaseAvailable

      public static boolean isDatabaseAvailable()
      Checks whether a connection to the Insect Brain Database can be established.
      Returns:
      true, if an HTTP connection could be established
    • idExists

      public boolean idExists()
      Checks whether the neuron to be loaded was found in the database.
      Returns:
      true, if the neuron id specified in the constructor was found in the database
    • getTree

      public Tree getTree()
      Gets the collection of Paths for the specified cell ID
      Returns:
      the data for the specified cell as a Tree, or null if data could not be retrieved
    • getMeshes

      public List<OBJMesh> getMeshes()
      Gets the 3D meshes associated with this neuron's brain compartments.
      Returns:
      list of OBJMesh objects representing brain compartments
    • getAnnotations

      public List<InsectBrainCompartment> getAnnotations()
      Gets the brain compartment annotations for this neuron.
      Returns:
      list of InsectBrainCompartment annotations, or null if not available
    • getNeuronInfo

      public InsectBrainLoader.NeuronInfo getNeuronInfo()
    • main

      public static void main(String... args)