From 2a70c860855ff177e3c1c41ff82d472049dc0a3e Mon Sep 17 00:00:00 2001 From: d33bs Date: Wed, 6 Nov 2024 12:27:12 -0700 Subject: [PATCH] linting --- .../examples/cytodataframe_at_a_glance.ipynb | 33 ++++++++----------- .../src/examples/cytodataframe_at_a_glance.py | 33 ++++++++----------- 2 files changed, 26 insertions(+), 40 deletions(-) diff --git a/docs/src/examples/cytodataframe_at_a_glance.ipynb b/docs/src/examples/cytodataframe_at_a_glance.ipynb index 30f993b..0c27798 100644 --- a/docs/src/examples/cytodataframe_at_a_glance.ipynb +++ b/docs/src/examples/cytodataframe_at_a_glance.ipynb @@ -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." ] }, { @@ -121,9 +124,7 @@ " \"Image_FileName_OrigDNA\",\n", " \"Image_FileName_OrigRNA\",\n", " ]\n", - "][\n", - " :3\n", - "]" + "][:3]" ] }, { @@ -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", @@ -221,9 +222,7 @@ " \"Image_FileName_OrigDNA\",\n", " \"Image_FileName_OrigRNA\",\n", " ]\n", - "][\n", - " :3\n", - "]" + "][:3]" ] }, { @@ -313,9 +312,7 @@ " \"Image_FileName_RFP\",\n", " \"Image_FileName_DAPI\",\n", " ]\n", - "][\n", - " :3\n", - "]" + "][:3]" ] }, { @@ -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", @@ -406,9 +403,7 @@ " \"Image_FileName_RFP\",\n", " \"Image_FileName_DAPI\",\n", " ]\n", - "][\n", - " :3\n", - "]" + "][:3]" ] }, { @@ -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", @@ -509,9 +504,7 @@ " \"Image_FileName_DAPI\",\n", " \"Image_FileName_GOLD\",\n", " ]\n", - "][\n", - " :3\n", - "]" + "][:3]" ] } ], diff --git a/docs/src/examples/cytodataframe_at_a_glance.py b/docs/src/examples/cytodataframe_at_a_glance.py index 9324445..a45c17c 100644 --- a/docs/src/examples/cytodataframe_at_a_glance.py +++ b/docs/src/examples/cytodataframe_at_a_glance.py @@ -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 @@ -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", @@ -57,9 +58,7 @@ "Image_FileName_OrigDNA", "Image_FileName_OrigRNA", ] -][ - :3 -] +][:3] # %%time @@ -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", @@ -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", @@ -111,6 +106,4 @@ "Image_FileName_DAPI", "Image_FileName_GOLD", ] -][ - :3 -] +][:3]