Skip to content

Commit

Permalink
docs: Add dark mode versions of figures for sample boundaries tutorial (
Browse files Browse the repository at this point in the history
  • Loading branch information
melissawm authored Oct 18, 2024
1 parent 3a76bcf commit c997fb6
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 9 deletions.
18 changes: 18 additions & 0 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,24 @@ dl.class > dd > dl:nth-child(27) {
margin: auto;
}

/* Dark mode figures */
[data-md-color-scheme="default"] {
.md-typeset figure.only-light {
display: block !important;
}
.md-typeset figure.only-dark {
display: none !important;
}
}
[data-md-color-scheme="slate"] {
.md-typeset figure.only-light {
display: none !important;
}
.md-typeset figure.only-dark {
display: block !important;
}
}

/* Landing page button */
.sd-btn {
font-size: 0.75rem;
Expand Down
46 changes: 37 additions & 9 deletions docs/tutorial_sample_boundaries.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@ tocdepth: 2
(tutorial-sample-boundaries)=
# Predicting sample boundaries

```{figure} ./figures/tomo_side_light.png
:alt: tutorial-goal
:align: center
```{figure-md}
:class: only-light
![tutorial-goal](./figures/tomo_side_light.png)
Side view onto a cryo-electron tomogram [run 15094](https://cryoetdataportal.czscience.com/runs/15094) without (left) and with (right) sample boundary annotation
```

```{figure-md}
:class: only-dark
![tutorial-goal](./figures/tomo_side_dark.png)
Side view onto a cryo-electron tomogram [run 15094](https://cryoetdataportal.czscience.com/runs/15094) without (left) and with (right) sample boundary annotation
```


Biological samples acquired in a cryoET experiment are usually thin slabs of vitrified ice containing the biological specimen of interest. Unfortunately, it is difficult to determine orientation and thickness of the samples ahead of reconstruction. For this reason, volumes reconstructed from cryoET tilt series are often larger than the actual sample and contain a significant amount of empty space (i.e. the vacuum inside the TEM column).

There are several reasons for why it can be useful to determine more accurate sample boundaries, for example:
Expand Down Expand Up @@ -436,9 +446,18 @@ see the info box below and refer to the [ChimeraX documentation](https://www.cgl

At the end of this step, you should have annotated the top- and bottom-layer of the all 18 tomograms in the training set.

```{figure} ./figures/top_bottom_light.png
:alt: top-bottom
:align: center
```{figure-md}
:class: only-light
![top-bottom](./figures/top_bottom_light.png)
Points clicked along the top and bottom boundary of the sample of a tomogram.
```

```{figure-md}
:class: only-dark
![top-bottom](./figures/top_bottom_dark.png)
Points clicked along the top and bottom boundary of the sample of a tomogram.
```
Expand Down Expand Up @@ -469,9 +488,18 @@ album run copick:create_rec_limits:0.5.0 \
You can now visualize the created bounding boxes in ChimeraX by restarting the copick interface and selecting the
`valid-area` object in the Mesh-tab on the left side.

```{figure} ./figures/valid_area_light.png
:alt: valid-area
:align: center
```{figure-md}
:class: only-light
![valid-area](./figures/valid_area_light.png)
Top view onto a tomogram [run 15094](https://cryoetdataportal.czscience.com/runs/14069) without (left) and with (right) valid reconstruction area mesh overlayed.
```

```{figure-md}
:class: only-dark
![valid-area](./figures/valid_area_dark.png)
Top view onto a tomogram [run 15094](https://cryoetdataportal.czscience.com/runs/14069) without (left) and with (right) valid reconstruction area mesh overlayed.
```
Expand Down

0 comments on commit c997fb6

Please sign in to comment.