imaging_report.py
activate(schema_name, imaging_schema_name, *, create_schema=True, create_tables=True)
¶
Activate this schema.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
schema_name |
str
|
Schema name on the database server to activate the
|
required |
imaging_schema_name |
str
|
Schema name of the activated imaging element for which this imaging_report schema will be downstream from |
required |
create_schema |
bool
|
When True (default), create schema in the database if it does not yet exist. |
True
|
create_tables |
bool
|
When True (default), create tables in the database if they do not yet exist. |
True
|
Source code in element_calcium_imaging/imaging_report.py
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 |
|
ScanLevelReport
¶
Bases: Computed
Scan level report with figures.
Attributes:
Name | Type | Description |
---|---|---|
imaging.Segmentation |
foreign key
|
Primary key from imaging.Segmentation. |
cell_overlayed_image |
longblob
|
Plotly figure object showing the segmented cells on the average image. |
Source code in element_calcium_imaging/imaging_report.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|
make(key)
¶
Compute and ingest the plotly figure objects.
Source code in element_calcium_imaging/imaging_report.py
56 57 58 59 60 |
|
TraceReport
¶
Bases: Computed
Figures of traces.
Attributes:
Name | Type | Description |
---|---|---|
imaging.Segmentation.Mask |
foreign key
|
Primary key from imaging.Segmentation.Mask. |
cell_traces |
longblob
|
Plotly figure object showing the cell traces. |
Source code in element_calcium_imaging/imaging_report.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
|
key_source
property
¶
Limit the TraceReport to Masks that have Activity table populated. database.
make(key)
¶
Compute and ingest the plotly figure objects.
Source code in element_calcium_imaging/imaging_report.py
86 87 88 89 90 |
|