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

Remove cytodataframe.show_report references #153

Merged
merged 3 commits into from
Dec 15, 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,538 changes: 5 additions & 11,533 deletions docs/src/examples/cosmicqc_in_a_nutshell.ipynb

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions docs/src/examples/cosmicqc_in_a_nutshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.16.2
# jupytext_version: 1.16.4
# kernelspec:
# display_name: Python 3 (ipykernel)
# language: python
Expand All @@ -20,6 +20,7 @@
import pathlib

import pandas as pd
from cytodataframe import CytoDataFrame

import cosmicqc

Expand All @@ -35,7 +36,7 @@
mask_context_dir = pathlib.Path(data_path).parent / "Plate_2_masks"

# create a cosmicqc CytoDataFrame (single-cell DataFrame)
scdf = cosmicqc.CytoDataFrame(
scdf = CytoDataFrame(
data=data_path,
data_context_dir=image_context_dir,
data_mask_context_dir=mask_context_dir,
Expand Down Expand Up @@ -75,10 +76,6 @@
labeled_scdf.iloc[:, -8:]
# -

# show histogram reports on the outliers and inliers
# for each threshold set in the new columns
labeled_scdf.show_report() # fmt: skip

# show cropped images through CytoDataFrame from the dataset to help analyze outliers
labeled_scdf.sort_values(by="cqc.large_nuclei.is_outlier", ascending=False)[
[
Expand Down
Loading