Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
d33bs committed Nov 6, 2024
1 parent dfce204 commit 2a70c86
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 40 deletions.
33 changes: 13 additions & 20 deletions docs/src/examples/cytodataframe_at_a_glance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
"source": [
"# CytoDataFrame at a Glance\n",
"\n",
"This notebook demonstrates various capabilities of [CytoDataFrame](https://github.com/WayScience/CytoDataFrame) using examples.\n",
"This notebook demonstrates various capabilities of \n",
"[CytoDataFrame](https://github.com/WayScience/CytoDataFrame) using examples.\n",
"\n",
"CytoDataFrame is intended to provide you a Pandas-like DataFrame experience which is enhanced with single-cell visual information which can be viewed directly in a Jupyter notebook."
"CytoDataFrame is intended to provide you a Pandas-like\n",
"DataFrame experience which is enhanced with single-cell\n",
"visual information which can be viewed directly in a Jupyter notebook."
]
},
{
Expand Down Expand Up @@ -121,9 +124,7 @@
" \"Image_FileName_OrigDNA\",\n",
" \"Image_FileName_OrigRNA\",\n",
" ]\n",
"][\n",
" :3\n",
"]"
"][:3]"
]
},
{
Expand Down Expand Up @@ -208,7 +209,7 @@
],
"source": [
"%%time\n",
"# view JUMP plate BR00117006 with images and overlayed outlines for segmentation\n",
"# view JUMP plate BR00117006 with images and overlaid outlines for segmentation\n",
"CytoDataFrame(\n",
" data=f\"{jump_data_path}/BR00117006_shrunken.parquet\",\n",
" data_context_dir=f\"{jump_data_path}/images/orig\",\n",
Expand All @@ -221,9 +222,7 @@
" \"Image_FileName_OrigDNA\",\n",
" \"Image_FileName_OrigRNA\",\n",
" ]\n",
"][\n",
" :3\n",
"]"
"][:3]"
]
},
{
Expand Down Expand Up @@ -313,9 +312,7 @@
" \"Image_FileName_RFP\",\n",
" \"Image_FileName_DAPI\",\n",
" ]\n",
"][\n",
" :3\n",
"]"
"][:3]"
]
},
{
Expand Down Expand Up @@ -393,7 +390,7 @@
],
"source": [
"%%time\n",
"# view NF1 Cell Painting data with images and overlayed outlines from masks\n",
"# view NF1 Cell Painting data with images and overlaid outlines from masks\n",
"CytoDataFrame(\n",
" data=f\"{nf1_cellpainting_path}/Plate_2_with_image_data_shrunken.parquet\",\n",
" data_context_dir=f\"{nf1_cellpainting_path}/Plate_2_images\",\n",
Expand All @@ -406,9 +403,7 @@
" \"Image_FileName_RFP\",\n",
" \"Image_FileName_DAPI\",\n",
" ]\n",
"][\n",
" :3\n",
"]"
"][:3]"
]
},
{
Expand Down Expand Up @@ -496,7 +491,7 @@
],
"source": [
"%%time\n",
"# view nuclear speckles data with images and overlayed outlines from masks\n",
"# view nuclear speckles data with images and overlaid outlines from masks\n",
"CytoDataFrame(\n",
" data=f\"{nuclear_speckles_path}/test_slide1_converted.parquet\",\n",
" data_context_dir=f\"{nuclear_speckles_path}/images/plate1\",\n",
Expand All @@ -509,9 +504,7 @@
" \"Image_FileName_DAPI\",\n",
" \"Image_FileName_GOLD\",\n",
" ]\n",
"][\n",
" :3\n",
"]"
"][:3]"
]
}
],
Expand Down
33 changes: 13 additions & 20 deletions docs/src/examples/cytodataframe_at_a_glance.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@

# # CytoDataFrame at a Glance
#
# This notebook demonstrates various capabilities of [CytoDataFrame](https://github.com/WayScience/CytoDataFrame) using examples.
# This notebook demonstrates various capabilities of
# [CytoDataFrame](https://github.com/WayScience/CytoDataFrame) using examples.
#
# CytoDataFrame is intended to provide you a Pandas-like DataFrame experience which is enhanced with single-cell visual information which can be viewed directly in a Jupyter notebook.
# CytoDataFrame is intended to provide you a Pandas-like
# DataFrame experience which is enhanced with single-cell
# visual information which can be viewed directly in a Jupyter notebook.

# +
from cytodataframe.frame import CytoDataFrame
Expand All @@ -39,12 +42,10 @@
"Image_FileName_OrigDNA",
"Image_FileName_OrigRNA",
]
][
:3
]
][:3]

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


# %%time
Expand All @@ -75,12 +74,10 @@
"Image_FileName_RFP",
"Image_FileName_DAPI",
]
][
:3
]
][:3]

# %%time
# view NF1 Cell Painting data with images and overlayed outlines from masks
# view NF1 Cell Painting data with images and overlaid outlines from masks
CytoDataFrame(
data=f"{nf1_cellpainting_path}/Plate_2_with_image_data_shrunken.parquet",
data_context_dir=f"{nf1_cellpainting_path}/Plate_2_images",
Expand All @@ -93,12 +90,10 @@
"Image_FileName_RFP",
"Image_FileName_DAPI",
]
][
:3
]
][:3]

# %%time
# view nuclear speckles data with images and overlayed outlines from masks
# view nuclear speckles data with images and overlaid outlines from masks
CytoDataFrame(
data=f"{nuclear_speckles_path}/test_slide1_converted.parquet",
data_context_dir=f"{nuclear_speckles_path}/images/plate1",
Expand All @@ -111,6 +106,4 @@
"Image_FileName_DAPI",
"Image_FileName_GOLD",
]
][
:3
]
][:3]

0 comments on commit 2a70c86

Please sign in to comment.