Package sc.fiji.snt.io
Class MouseLightQuerier
java.lang.Object
sc.fiji.snt.io.MouseLightQuerier
Importer for retrieving reconstructions from MouseLight's online database at
ml-neuronbrowser.janelia.org
- Author:
- Tiago Ferreira
-
Method Summary
Modifier and TypeMethodDescriptionGets all available neuron IDs from the database.Returns a list of IDs associated with the specified identifiergetIDs(Collection<String> idsOrDOIs, boolean exactMatch) Gets neuron IDs matching the specified collection of IDs or DOIs.getIDs(Collection<AllenCompartment> compartments) Gets neuron IDs for the specified collection of brain compartments.getIDs(AllenCompartment compartment) Gets neuron IDs for the specified brain compartment.static intGets the number of cells publicly available in the MouseLight database.static booleanChecks whether a connection to the MouseLight database can be established.static voidstatic voidsetCCFVersion(String version) Sets the version of the Common Coordinate Framework to be used by the Querier.
-
Method Details
-
isDatabaseAvailable
public static boolean isDatabaseAvailable()Checks whether a connection to the MouseLight database can be established.- Returns:
- true, if an HHTP connection could be established
-
getIDs
Gets neuron IDs for the specified brain compartment.- Parameters:
compartment- the Allen brain compartment- Returns:
- list of neuron IDs in the compartment
-
getIDs
Gets neuron IDs for the specified collection of brain compartments.- Parameters:
compartments- the collection of Allen brain compartments- Returns:
- list of neuron IDs in the compartments
-
getIDs
Returns a list of IDs associated with the specified identifier- Parameters:
idOrDOI- the neuron id (e.g., "AA0001") or DOI (e.g., "10.25378/janelia.5527672") of the neuron to be loadedexactMatch- If true, only exact matches will be considered
-
getIDs
Gets neuron IDs matching the specified collection of IDs or DOIs.- Parameters:
idsOrDOIs- the collection of IDs or DOIs to search forexactMatch- if true, only exact matches will be considered- Returns:
- list of matching neuron IDs
-
getAllIDs
Gets all available neuron IDs from the database.- Returns:
- list of all neuron IDs
-
setCCFVersion
Sets the version of the Common Coordinate Framework to be used by the Querier.- Parameters:
version- Either "3" (the default), or "2.5" (MouseLight legacy)
-
getNeuronCount
public static int getNeuronCount()Gets the number of cells publicly available in the MouseLight database.- Returns:
- the number of available cells, or -1 if the database could not be reached.
-
main
-