water choice, miss/sated) and condition-averaged firing rate vectors were concatenated. These concatenated, per-cell condition-averaged rates were treated as multidimensional measurements where each concatenated firing rate bin was a feature. Using the library Scanpy65, the cell by feature...
Python - Scanpy # Import some packages import numpy as np from scipy.sparse import csr_matrix import dbmap as dm import scanpy as sc # Load your data (raw or normalized cells x genes # or cells x variable_genes, but NOT SCALED!) adata = sc.read_h5ad(YOUR ANNDATA) # It's computati...