neuralib.rastermap.core.RasterOptions

class neuralib.rastermap.core.RasterOptions[source]

Bases: TypedDict

Run Rastermap model options. Refer to the rastermap.rastermap.setting_info()

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

clear()

copy()

fromkeys(iterable[, value])

Create a new dictionary with keys from iterable and values set to value.

get(key[, default])

Return the value for key if key is in the dictionary, else default.

items()

keys()

pop(k[,d])

If the key is not found, return the default if given; otherwise, raise a KeyError.

popitem()

Remove and return a (key, value) pair as a 2-tuple.

setdefault(key[, default])

Insert key with a value of default if key is not in the dictionary.

update([E, ]**F)

If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]

values()

Attributes

n_clusters

Number of clusters created from data before upsampling and creating embedding (any number above 150 will be very slow due to NP-hard sorting problem)

n_PCs

Number of PCs to use during optimization

time_lag_window

Number of time points into the future to compute cross-correlation, useful for sequence finding

locality

How local should the algorithm be -- set to 1.0 for highly local + sequence finding

n_splits

Recluster and sort n_splits times (increases local neighborhood preservation)

time_bin

Binning of data in time before PCA is computed

grid_upsample

How much to upsample clusters

mean_time

Whether to project out the mean over data samples at each timepoint, usually good to keep on to find structure

verbose

Whether to output progress during optimization

verbose_sorting

Output progress in travelling salesman

start_time

Optional start time

end_time

Optional end time

n_clusters: Required[int]

Number of clusters created from data before upsampling and creating embedding (any number above 150 will be very slow due to NP-hard sorting problem)

n_PCs: Required[int]

Number of PCs to use during optimization

time_lag_window: Required[float]

Number of time points into the future to compute cross-correlation, useful for sequence finding

locality: Required[float]

How local should the algorithm be – set to 1.0 for highly local + sequence finding

n_splits: int

Recluster and sort n_splits times (increases local neighborhood preservation)

time_bin: int

Binning of data in time before PCA is computed

grid_upsample: Required[int]

How much to upsample clusters

mean_time: bool

Whether to project out the mean over data samples at each timepoint, usually good to keep on to find structure

verbose: bool

Whether to output progress during optimization

verbose_sorting: bool

Output progress in travelling salesman

start_time: int

Optional start time

end_time: int

Optional end time