neuralib.rastermap.core.RasterMapResult
- class neuralib.rastermap.core.RasterMapResult[source]
Bases:
objectContainer for storing the rastermap result, For both GUI load and customized plotting purpose
Dimension parameters:
N = Number of neurons/pixel
T = Number of samples
C = Number of clusters = N / binsize
- __init__(filename, save_path, isort, embedding, ops, user_clusters=NOTHING, super_neurons=None)
Method generated by attrs for class RasterMapResult.
- Parameters:
filename (str | None)
save_path (str | None)
isort (np.ndarray)
embedding (np.ndarray)
ops (RasterOptions)
user_clusters (list[UserCluster])
super_neurons (np.ndarray | None)
- Return type:
None
Methods
__init__(filename, save_path, isort, ...[, ...])Method generated by attrs for class RasterMapResult.
asdict()result as dict
load(path)Load the results from rastermap output
save(path)For GUI loading & cache computing for plotting in different time domains
Attributes
Filename of the neural activity data (i.e.,
*.tifor*.avifor wfield activity;.npyArray[float, [N, T]]file for cellular)filename for the rastermap result save
Array[int, N]
Array[float, [N, 1]]
RasterOptionslist of clusters
UserClustersuper neuron activity.
number of clusters (super neurons)
number of data samples (T)
- filename: str | None
Filename of the neural activity data (i.e.,
*.tifor*.avifor wfield activity;.npyArray[float, [N, T]]file for cellular)
- save_path: str | None
filename for the rastermap result save
- isort: ndarray
Array[int, N]
- embedding: ndarray
Array[float, [N, 1]]
- ops: RasterOptions
RasterOptions
- user_clusters: list[UserCluster]
list of clusters
UserCluster
- super_neurons: ndarray | None
super neuron activity. Array[float, [C, T]]
- classmethod load(path)[source]
Load the results from rastermap output
- Parameters:
path (str | Path | PathLike[str]) – file path of the rastermap output
- Returns:
- Return type:
Self
- save(path)[source]
For GUI loading & cache computing for plotting in different time domains
- Parameters:
path (str | Path | PathLike[str])
- Return type:
None
- property n_clusters: int
number of clusters (super neurons)
- property n_samples: int
number of data samples (T)
- __init__(filename, save_path, isort, embedding, ops, user_clusters=NOTHING, super_neurons=None)
Method generated by attrs for class RasterMapResult.
- Parameters:
filename (str | None)
save_path (str | None)
isort (np.ndarray)
embedding (np.ndarray)
ops (RasterOptions)
user_clusters (list[UserCluster])
super_neurons (np.ndarray | None)
- Return type:
None