bluepyemodel.icselector.icselector¶
ICSELECTOR Select a set of NEURON mechanisms, parameters and bounds from corresponding genes. Gene names can be selected from a file mapping genes to different ME-T types. Corresponding channels are selected from a file mapping channels and parameters to genes.
Classes
|
Selects NEURON mechanisms, with parameters, value bounds, and distributions. |
- class ICSelector(ic_map_path, gene_map_path, mode='mixed', status='latest')¶
Bases:
objectSelects NEURON mechanisms, with parameters, value bounds, and distributions. Uses reference files for MET-type to gene mapping, gene to channel mapping, and channel to parameter mapping.
- Parameters:
- get(name)¶
Get mechanism corresponding to gene or channel.
- get_cell_config_from_ttype(key_words)¶
Get all information related to cell model configuration from mechanisms selected based on genetic expression profiles.
- Parameters:
key_words – keys to select MET-types
- Returns:
mechanism parameters per compartment mechanisms (list [dict,]): mechanisms per compartment distributions (list [dict,]): definitions of subcellular distributions nexus_keys (list [dict,]): name and modelid for each mechanism
- Return type:
- get_gene_mapping()¶
Get a dict of all selected genes and mapped channels. :returns: all selected genes and mapped channels :rtype: genes (dict)
- get_mechanisms(selected_only=True)¶
Get all available mechanisms from the icmapping file.
- get_selected_cell_types()¶
Get met types selected from the gene mapping table.
- Returns:
all selected cell types
- Return type:
(list)
- select(name)¶
Select mechanism for inclusion in configuration.
- Parameters:
name (str) – name of a gene or channel.