Skip to content

Commit

Permalink
Add screenshot of surforama using cz cdp data
Browse files Browse the repository at this point in the history
  • Loading branch information
kephale committed Sep 12, 2024
1 parent 8b72722 commit c550976
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Binary file added docs/surforama_data_portal_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/surforama_data_portal_002_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions docs/surforama_for_data_portal.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit c550976

Please sign in to comment.