Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.1.1 with docs #131

Merged
merged 3 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,17 @@


theme_options = ThemeOptions(
logo_light= "_static/no_image.png",
logo_dark= "_static/no_image.png",
logo_light="_static/no_image.png",
logo_dark="_static/no_image.png",
show_scrolltop=True,
show_breadcrumbs=True,
awesome_external_links=True,
main_nav_links={
"Installation": "installation",
"Tutorials": "tutorials",
"How it Works": "howitworks",
"API": "api",
"How it Works": "howitworks",
"Contributors": "contributors",
},
extra_header_link_icons={
"GitHub": LinkIcon(
Expand All @@ -100,9 +101,7 @@

html_theme_options = asdict(theme_options)

html_sidebars = {
"**": ["sidebar_main_nav_links.html", "sidebar_toc.html"]
}
html_sidebars = {"**": ["sidebar_main_nav_links.html", "sidebar_toc.html"]}

html_context = {"default_mode": "auto"}

Expand Down
10 changes: 10 additions & 0 deletions docs/source/contributors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
```{toctree}
:hidden: true
```

# {octicon}`heart` Contributors

## Team
- [Clarence Mah](https://clarencemah.me)
- [Noorsher Ahmed](https://github.com/noor01)
- [Dylan Lam](https://github.com/dylanclam12)
2 changes: 2 additions & 0 deletions docs/source/howitworks.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ The `SpatialData` object is a container for the following elements:
- `Shapes`: boundaries, circles, polygons
- `Tables`: annotations, count matrices

See the [Data Prep Guide](tutorial_gallery/Data_Prep_Guide.html) for more information on how to prepare `SpatialData` objects for Bento and official [SpatialData documentation](https://spatialdata.scverse.org) for more info.


## RNAflux

Expand Down
5 changes: 2 additions & 3 deletions docs/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

installation
tutorials
howitworks
api
howitworks
contributors
```

```{image} https://badge.fury.io/py/bento-tools.svg
Expand Down Expand Up @@ -49,9 +50,7 @@ Bento is a Python toolkit for performing subcellular analysis of spatial transcr
:::{grid-item-card} {octicon}`workflow` Tutorials
:link: tutorials.html
:::
::::

::::{grid} 2
:::{grid-item-card} {octicon}`gear` How It Works
:link: howitworks.html
:::
Expand Down
4 changes: 3 additions & 1 deletion docs/source/tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
:hidden: true

tutorial_gallery/Main_Guide
tutorial_gallery/Data_Prep_Guide
tutorial_gallery/Spatial_Plotting
tutorial_gallery/Spatial_Features
:::

::::{grid} 3
::::{grid} 2
:::{grid-item-card} Main Guide
:link: tutorial_gallery/Main_Guide.html

Expand All @@ -22,6 +23,7 @@ This tutorial will walk you through how to load, visualize data, and perform sub
:link: tutorial_gallery/Data_Prep_Guide.html

This guide will explain and demonstrate how to prepare SpatialData objects for Bento.
:::

:::{grid-item-card} Spatial Plotting
:link: tutorial_gallery/Spatial_Plotting.html
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "bento-tools"
version = "2.1"
version = "2.1.1"
description = "A toolkit for subcellular analysis of spatial transcriptomics data"
authors = [
{ name = "ckmah", email = "[email protected]" }
Expand Down
7 changes: 4 additions & 3 deletions tests/test_flux.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import pytest


Expand Down Expand Up @@ -32,7 +31,9 @@
assert "flux_variance_ratio" in flux_data.table.uns

# Check columns are added in cell_boundaries_raster
assert all(gene in flux_data.points["cell_boundaries_raster"].columns for gene in genes)
assert all(

Check warning on line 34 in tests/test_flux.py

View check run for this annotation

Codecov / codecov/patch

tests/test_flux.py#L34

Added line #L34 was not covered by tests
gene in flux_data.points["cell_boundaries_raster"].columns for gene in genes
)

for i in range(len(genes)):
assert f"flux_embed_{i}" in flux_data.points["cell_boundaries_raster"].columns
Expand All @@ -45,7 +46,7 @@
points_key="transcripts",
instance_key="cell_boundaries",
res=conftest.FLUX_RES,
min_count = conftest.FLUXMAP_MIN_COUNT,
min_count=conftest.FLUXMAP_MIN_COUNT,
train_size=conftest.FLUXMAP_TRAIN_SIZE,
n_clusters=conftest.FLUXMAP_N_CLUSTERS,
plot_error=False,
Expand Down
Loading