diff --git a/docs/surforama_data_portal_002.png b/docs/surforama_data_portal_002.png new file mode 100644 index 0000000..1952955 Binary files /dev/null and b/docs/surforama_data_portal_002.png differ diff --git a/docs/surforama_data_portal_002_light.png b/docs/surforama_data_portal_002_light.png new file mode 100644 index 0000000..5165fbd Binary files /dev/null and b/docs/surforama_data_portal_002_light.png differ diff --git a/docs/surforama_for_data_portal.md b/docs/surforama_for_data_portal.md index 4c737cd..0a46832 100644 --- a/docs/surforama_for_data_portal.md +++ b/docs/surforama_for_data_portal.md @@ -2,6 +2,8 @@ For this code to work you'll need to install `cryoet-data-portal` which you can do by following the installation instructions on [this site](https://chanzuckerberg.github.io/cryoet-data-portal/). +![Screenshot of surforama with data from the dataportal](surforama_data_portal_002_light.png) + ## Script This script will: @@ -17,6 +19,7 @@ Once that has happened there are some interactive steps: - explore the surface of this section of membrane + ```python import cryoet_data_portal as portal import zarr @@ -84,6 +87,8 @@ viewer.add_image(g, scale=(4, 4, 4)) viewer.add_labels(membrane, scale=(4, 4, 4)) viewer.add_labels(third_largest_component_mask, scale=(4, 4, 4)) +# may need to use viewer.layers[-1].scale = (4, 4, 4) + # Instantiate the Surforama widget surforama_widget = surforama.QtSurforama(viewer) viewer.window.add_dock_widget(surforama_widget, area="right", name="Surforama")