vame.analysis.umap_visualization
Variational Animal Motion Embedding 1.0-alpha Toolbox © K. Luxem & P. Bauer, Department of Cellular Neuroscience Leibniz Institute for Neurobiology, Magdeburg, Germany
https://github.com/LINCellularNeuroscience/VAME Licensed under GNU General Public License v3.0
umap_vis
def umap_vis(file: str, embed: np.ndarray, num_points: int) -> None
Visualize UMAP embedding without labels.
Arguments:
file
str - Name of the file (deprecated).embed
np.ndarray - UMAP embedding.num_points
int - Number of data points to visualize.
Returns:
None - Plot Visualization of UMAP embedding.
umap_label_vis
def umap_label_vis(file: str, embed: np.ndarray, label: np.ndarray,
n_cluster: int, num_points: int) -> None
Visualize UMAP embedding with motif labels.
Arguments:
file
str - Name of the file (deprecated).embed
np.ndarray - UMAP embedding.label
np.ndarray - Motif labels.n_cluster
int - Number of clusters.num_points
int - Number of data points to visualize.
Returns:
fig - Plot figure of UMAP visualization embedding with motif labels.
umap_vis_comm
def umap_vis_comm(file: str, embed: np.ndarray, community_label: np.ndarray,
num_points: int) -> None
Visualize UMAP embedding with community labels.
Arguments:
file
str - Name of the file (deprecated).embed
np.ndarray - UMAP embedding.community_label
np.ndarray - Community labels.num_points
int - Number of data points to visualize.
Returns:
fig - Plot figure of UMAP visualization embedding with community labels.
visualization
@save_state(model=VisualizationFunctionSchema)
def visualization(config: Union[str, Path],
label: Optional[str] = None,
save_logs: bool = False) -> None
Visualize UMAP embeddings based on configuration settings.
Arguments:
config
Union[str, Path] - Path to the configuration file.label
str, optional - Type of labels to visualize. Default is None.
Returns:
None - Plot Visualization of UMAP embeddings.