Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run_tests:
strategy:
matrix:
python_version: ["3.10", "3.11", "3.12", "3.13"]
python_version: ["3.11", "3.12", "3.13"]
os: [ubuntu-24.04, macos-14]
runs-on: ${{ matrix.os }}
env:
Expand Down
604 changes: 543 additions & 61 deletions docs/src/examples/cytodataframe_at_a_glance.ipynb

Large diffs are not rendered by default.

34 changes: 32 additions & 2 deletions docs/src/examples/cytodataframe_at_a_glance.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

# %%time
# view JUMP plate BR00117006 with images and overlaid outlines for segmentation
CytoDataFrame(
frame = CytoDataFrame(
data=f"{jump_data_path}/BR00117006_shrunken.parquet",
data_context_dir=f"{jump_data_path}/images/orig",
data_outline_context_dir=f"{jump_data_path}/images/outlines",
Expand All @@ -67,6 +67,7 @@
"Image_FileName_OrigRNA",
]
][:3]
frame


# %%time
Expand Down Expand Up @@ -183,6 +184,16 @@
]
][:5].T

# +
# %%time
# export to OME Parquet, a format which uses OME Arrow
# to store OME-spec images as values within the table.
frame.to_ome_parquet(file_path="example.ome.parquet")

# read OME Parquet file into the CytoDataFrame
CytoDataFrame(data="example.ome.parquet")
# -

# %%time
# view JUMP plate BR00117006 with images, changing the bounding box
# using offsets so each image has roughly the same size.
Expand Down Expand Up @@ -225,7 +236,7 @@

# %%time
# view NF1 Cell Painting data with images and overlaid outlines from masks
CytoDataFrame(
frame = CytoDataFrame(
data=f"{nf1_cellpainting_path}/Plate_2_with_image_data_shrunken.parquet",
data_context_dir=f"{nf1_cellpainting_path}/Plate_2_images",
data_mask_context_dir=f"{nf1_cellpainting_path}/Plate_2_masks",
Expand All @@ -238,6 +249,7 @@
"Image_FileName_DAPI",
]
][:3]
frame

# +
# %%time
Expand Down Expand Up @@ -266,6 +278,15 @@
"Image_FileName_DAPI",
]
][:3]

# +
# %%time
# export to OME Parquet, a format which uses OME Arrow
# to store OME-spec images as values within the table.
frame.to_ome_parquet(file_path="example.ome.parquet")

# read OME Parquet file into the CytoDataFrame
CytoDataFrame(data="example.ome.parquet")
# -

# %%time
Expand Down Expand Up @@ -308,3 +329,12 @@
# show that we can use the cytodataframe again
# by quick variable reference.
cdf

# +
# %%time
# export to OME Parquet, a format which uses OME Arrow
# to store OME-spec images as values within the table.
cdf.to_ome_parquet(file_path="example.ome.parquet")

# read OME Parquet file into the CytoDataFrame
CytoDataFrame(data="example.ome.parquet")
2 changes: 1 addition & 1 deletion media/coverage-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading