Viz Module API Reference
Widget Classes
Module for visualization
Landscape
Bases: AnyWidget
A widget for interactive visualization of spatial omics data. This widget currently supports iST (Xenium and MERSCOPE) and sST (Visium HD data)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ini_x |
float
|
The initial x-coordinate of the view. |
required |
ini_y |
float
|
The initial y-coordinate of the view. |
required |
ini_zoom |
float
|
The initial zoom level of the view. |
required |
token |
str
|
The token traitlet. |
required |
base_url |
str
|
The base URL for the widget. |
required |
dataset_name |
str
|
The name of the dataset to visualize. This will show up in the user interface bar. |
required |
Attributes:
Name | Type | Description |
---|---|---|
component |
str
|
The name of the component. |
technology |
str
|
The technology used. |
base_url |
str
|
The base URL for the widget. |
token |
str
|
The token traitlet. |
ini_x |
float
|
The initial x-coordinate of the view. |
ini_y |
float
|
The initial y-coordinate of the view. |
ini_z |
float
|
The initial z-coordinate of the view. |
ini_zoom |
float
|
The initial zoom level of the view. |
dataset_name |
str
|
The name of the dataset to visualize. |
update_trigger |
dict
|
The dictionary to trigger updates. |
cell_clusters |
dict
|
The dictionary containing cell cluster information. |
Returns:
Name | Type | Description |
---|---|---|
Landscape |
A widget for visualizing a 'landscape' view of spatial omics data. |
Source code in src/celldega/viz/widget.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
Matrix
Bases: AnyWidget
A widget for interactive visualization of a hierarchically clustered matrix.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value |
int
|
The value traitlet. |
required |
component |
str
|
The component traitlet. |
required |
network |
dict
|
The network traitlet. |
required |
click_info |
dict
|
The click_info traitlet. |
required |
Attributes:
Name | Type | Description |
---|---|---|
component |
str
|
The name of the component. |
network |
dict
|
The network dictionary. |
click_info |
dict
|
The click_info dictionary. |
Returns:
Name | Type | Description |
---|---|---|
Matrix |
A widget for visualizing a hierarchically clustered matrix. |
Source code in src/celldega/viz/widget.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|
landscape_matrix(landscape, mat, width='600px', height='700px')
Display a Landscape
widget and a Matrix
widget side by side.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
landscape |
Landscape
|
A |
required |
mat |
Matrix
|
A |
required |
width |
str
|
The width of the widgets. |
'600px'
|
height |
str
|
The height of the widgets. |
'700px'
|
Returns:
Type | Description |
---|---|
Visualization display |
Example: See example Landscape-Matrix_Xenium notebook
Source code in src/celldega/viz/__init__.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|