Package sc.fiji.snt.io
Class InsectBrainLoader
java.lang.Object
sc.fiji.snt.io.InsectBrainLoader
Methods for retrieving reconstructions and annotations from the Insect Brain Database at
insectbraindb.org *
- Author:
- Cameron Arshadi, Tiago Ferreira
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInsectBrainLoader(int id) Constructs a new InsectBrainLoader for the specified neuron ID. -
Method Summary
Modifier and TypeMethodDescriptionGets the brain compartment annotations for this neuron.Gets the 3D meshes associated with this neuron's brain compartments.getTree()Gets the collection of Paths for the specified cell IDbooleanidExists()Checks whether the neuron to be loaded was found in the database.static booleanChecks whether a connection to the Insect Brain Database can be established.static void
-
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
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
Gets the 3D meshes associated with this neuron's brain compartments.- Returns:
- list of OBJMesh objects representing brain compartments
-
getAnnotations
Gets the brain compartment annotations for this neuron.- Returns:
- list of InsectBrainCompartment annotations, or null if not available
-
getNeuronInfo
-
main
-