singlecell_input_mapper
❭ map_singlecell_inputs
❭ map_singlecell_inputs
map_singlecell_inputs¶
-
singlecell_input_mapper.map_singlecell_inputs.map_singlecell_inputs(cellName, cellTypeName, nrOfSamples=
50
, numberOfCellsSpreadsheetName=numberOfCellsSpreadsheetName
, connectionsSpreadsheetName=connectionsSpreadsheetName
, ExPSTDensityName=ExPSTDensityName
, InhPSTDensityName=InhPSTDensityName
, boutonDensityFolderName=boutonDensityFolderName
)¶ Map inputs to a single cell morphology.
These inputs need to be organized per anatomical structure. Anatomical structures can be arbitrary spatial regions of the brain tissue, or anatomically well-defined areas, e.g. barrels in a barrel cortex.
Steps:
Loads in the data:
Cell morphology
Number of cells per cell type
Connection probabilities between cell types
PST densities for normalization of innervation calculations
Loads in the bouton densities:
For each anatomical area
For each presynaptic cell type
Creates a scalar field (
ScalarField
) for each bouton density.Creates a
NetworkMapper
object.Creates a network embedding for the cell using
create_network_embedding()
.
The naming of each anatomical area needs to be consistent between:
The number of cells per cell type spreadsheet
The bouton folders containing axon traces
- Parameters:¶
cellName (str) – path to a .hoc file containing the morphology of the cell.
cellTypeName (str) – name of the postsynaptic cell type.
nrOfSamples (int) – number of samples to use for the network embedding.
numberOfCellsSpreadsheetName (str) – Path to the a spreadsheet, containing each neuropil structures as columns, and celltypes row indices. Values indicate how much of each celltype was found in each neuropil structure.
connectionsSpreadsheetName (str) – Path to a spreadsheet, containing the connection probabilities between each presynaptic and postsynaptic cell type.
ExPSTDensityName (str) – Path to the PST density file for excitatory synapses.
InhPSTDensityName (str) – Path to the PST density file for inhibitory synapses.
boutonDensityFolderName – A directory containing the following subdirectory structure: anatomical_area/presynaptic_cell_type/*.am
- Returns:¶
None. Writes the results to disk.