AllenInstitute / brain_observatory_qc

Other
2 stars 0 forks source link

Visualization cell segmentation #271

Closed jkim0731 closed 1 year ago

jkim0731 commented 1 year ago

Red is from 'valid' ROIs and yellow is from 'invalid' ROIs - the colors can be set as an input arg.

Can be run using the following lines of code:

Test brain_observatory_qc

from brain_observatory_qc.visualizations.data_processing.ophys.cell_segmentation import draw_roi_outlines oeid = 1219594255 fig, ax = plt.subplots() ax = draw_roi_outlines(oeid, ax=ax, valid='all', colors=['r','y'], linewidth=0.5) ax.set_title(f'{oeid} - All ROIs')

jkim0731 commented 1 year ago

Added drawing suite2p results.

jkim0731 commented 1 year ago

The functions to get paired plane oeid is from paired_plane_registration.py, but seems relevant to be in from_lims.