Mapping Constants#
Channel mappings, aliases, and sort orders.
Channel and metadata mapping constants.
Includes channel ID mappings, naming aliases, and sort orders.
- neurodent.constants.mappings.DEFAULT_ID_TO_LR = {9: 'L', 10: 'L', 12: 'L', 14: 'L', 15: 'L', 16: 'R', 17: 'R', 19: 'R', 21: 'R', 22: 'R'}#
Maps Intan channel IDs to hemisphere (L/R).
- neurodent.constants.mappings.GENOTYPE_ALIASES = {'KO': ['KO', 'knockout'], 'WT': ['WT', 'wildtype']}#
Canonical genotype names mapped to their aliases.
- neurodent.constants.mappings.SEX_ALIASES = {'Female': ['Female', 'female', 'F', 'f'], 'Male': ['Male', 'male', 'M', 'm']}#
Canonical sex values mapped to their aliases.
- neurodent.constants.mappings.CHNAME_ALIASES = {'Aud': ['Aud', 'aud', 'AUD'], 'Bar': ['Bar', 'bar', 'BAR'], 'Hip': ['Hip', 'hip', 'HIP'], 'Mot': ['Mot', 'mot', 'MOT'], 'Vis': ['Vis', 'vis', 'VIS']}#
Canonical brain region names mapped to their aliases.
- neurodent.constants.mappings.LR_ALIASES = {'L': ['left', 'Left', 'LEFT', 'L ', ' L'], 'R': ['right', 'Right', 'RIGHT', 'R ', ' R']}#
Canonical hemisphere names mapped to their aliases.
- neurodent.constants.mappings.DEFAULT_ID_TO_NAME = {9: 'LAud', 10: 'LVis', 12: 'LHip', 14: 'LBar', 15: 'LMot', 16: 'RMot', 17: 'RBar', 19: 'RHip', 21: 'RVis', 22: 'RAud'}#
Maps Intan channel IDs to full channel names (e.g., ‘LAud’).
- neurodent.constants.mappings.DF_SORT_ORDER = {'band': ['delta', 'theta', 'alpha', 'beta', 'gamma'], 'channel': ['average', 'all', 'LMot', 'RMot', 'LBar', 'RBar', 'LAud', 'RAud', 'LVis', 'RVis', 'LHip', 'RHip'], 'genotype': ['WT', 'KO'], 'isday': [True, False], 'sex': ['Male', 'Female']}#
Defines categorical sort orders for DataFrame columns.
- neurodent.constants.mappings.DATEPARSER_PATTERNS_TO_REMOVE = ['[A-Z]+\\d+', '\\([0-9]+\\)', '(?:\\b\\d\\s){1,}(\\d\\b)?', '\\s\\d$']#
Regex patterns to strip from filenames before date parsing.
- neurodent.constants.mappings.DEFAULT_DAY = datetime.datetime(2000, 1, 1, 0, 0)#
Fallback date when parsing fails.
- neurodent.constants.mappings.FEATURE_LABELS = {'alphadelta': 'Alpha/Delta Ratio', 'ampvar': 'Amplitude Variance', 'cohere': 'Coherence', 'imcoh': 'Imaginary Coherence', 'logampvar': 'Log(Amplitude Variance)', 'lognspike': 'Log(Spike Count)', 'logpsdband': 'Log Band Power', 'logpsdfrac': 'Log Power Fraction', 'logpsdtotal': 'Log(Total PSD)', 'logrms': 'Log(RMS)', 'nspike': 'Spike Count', 'pcorr': 'Pearson Correlation', 'psdband': 'Band Power', 'psdfrac': 'Power Fraction', 'psdslope': 'PSD Slope', 'psdtotal': 'Total PSD', 'rms': 'RMS', 'zcohere': 'Z-Coherence', 'zimcoh': 'Z-Imaginary Coherence', 'zpcorr': 'Z-Pearson Correlation'}#
Canonical display labels for features.