public class MouseLightQuerier
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AXON
The Constant AXON.
|
static java.lang.String |
DENDRITE
The Constant DENDRITE.
|
static java.lang.String |
SOMA
The Constant SOMA.
|
| Constructor and Description |
|---|
MouseLightQuerier(java.lang.String id)
Instantiates a new loader.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.TreeSet<SWCPoint> |
getAxonNodes()
Extracts the nodes of the axonal arbor of loaded neuron.
|
org.json.JSONObject |
getCompartment(java.lang.String structure)
Gets a traced compartment of the loaded cell.
|
java.util.TreeSet<SWCPoint> |
getDendriteNodes()
Extracts the nodes of the dendritic arbor of loaded neuron.
|
static java.util.List<java.lang.String> |
getIDs(AllenCompartment compartment)
Gets the IDs of the cells publicly available in the MouseLight database having
the soma associated with the specified compartment.
|
java.util.TreeSet<SWCPoint> |
getNodes()
Extracts the nodes (single-point soma, axonal and dendritic arbor) of the
loaded neuron.
|
java.util.TreeSet<SWCPoint> |
getNodes(java.lang.String compartment)
Script-friendly method to extract the nodes of a compartment.
|
SWCPoint |
getSoma()
Retrieves the soma (single-point representation) of the loaded neuron.
|
boolean |
idExists()
Checks whether the neuron to be loaded was found in the database.
|
static boolean |
isDatabaseAvailable()
Checks whether a connection to the MouseLight database can be established.
|
static void |
main(java.lang.String... args) |
public static final java.lang.String AXON
public static final java.lang.String DENDRITE
public static final java.lang.String SOMA
public MouseLightQuerier(java.lang.String id)
id - the neuron id (e.g., "AA0001") or DOI (e.g.,
"10.25378/janelia.5527672") of the neuron to be loadedpublic boolean idExists()
public static boolean isDatabaseAvailable()
public org.json.JSONObject getCompartment(java.lang.String structure)
throws java.lang.IllegalArgumentException
public java.util.TreeSet<SWCPoint> getNodes() throws java.lang.IllegalArgumentException
SWCPoints. Note that the
first point in the set (the soma) has an SWC sample number of 0.java.lang.IllegalArgumentException - if retrieval of data for this neuron is
not possiblepublic java.util.TreeSet<SWCPoint> getAxonNodes() throws java.lang.IllegalArgumentException
SWCPointsjava.lang.IllegalArgumentException - if retrieval of data for this neuron is
not possiblepublic java.util.TreeSet<SWCPoint> getDendriteNodes() throws java.lang.IllegalArgumentException
SWCPointsjava.lang.IllegalArgumentException - if retrieval of data for this neuron is
not possiblepublic java.util.TreeSet<SWCPoint> getNodes(java.lang.String compartment) throws java.lang.IllegalArgumentException
compartment - 'soma', 'axon', 'dendrite', 'all' (case insensitive)SWCPoints. All nodes are
retrieved if compartment was not recognized.java.lang.IllegalArgumentException - if compartment is not recognized or
retrieval of data for this neuron is not possiblepublic SWCPoint getSoma() throws java.lang.IllegalArgumentException
SWCPoint. Note that point has an SWC sample
number of 0.java.lang.IllegalArgumentException - if retrieval of data for this neuron is
not possiblepublic static java.util.List<java.lang.String> getIDs(AllenCompartment compartment)
compartment or an empty
list if no cells were foundpublic static void main(java.lang.String... args)