Skip to content

Commit 1b49485

Browse files
authored
added deprecation warnings to pycytominer docs (cytomining#706)
1 parent 13fa5ef commit 1b49485

6 files changed

Lines changed: 43 additions & 0 deletions

File tree

pycytominer/annotate.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ def annotate(
5757
Whether the plate map variables possibly need "Metadata" pre-pended
5858
format_broad_cmap : bool, default False
5959
Whether we need to add columns to make compatible with Broad CMAP naming conventions.
60+
61+
.. warning::
62+
The ``format_broad_cmap`` parameter is deprecated and will be
63+
removed in a future Pycytominer release.
6064
clean_cellprofiler: bool, default True
6165
Clean specific CellProfiler feature names by dropping
6266
Image_ prefix.
@@ -81,6 +85,10 @@ def annotate(
8185
decimal precision.
8286
cmap_args : dict, default None
8387
Potential keyword arguments for annotate_cmap(). See cyto_utils/annotate_custom.py for more details.
88+
89+
.. warning::
90+
The ``cmap_args`` parameter is deprecated and will be
91+
removed in a future Pycytominer release.
8492
platemap_sep : str, optional
8593
Column delimiter for the platemap file (e.g. ``","`` for CSV, ``"\\t"``
8694
for TSV). Only applies when ``platemap`` is a file path — ignored when

pycytominer/cyto_utils/DeepProfiler_processing.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
class DeepProfilerData:
2222
"""This class holds all functions needed to load and annotate the DeepProfiler (DP) run.
2323
24+
.. warning::
25+
The ``DeepProfilerData`` class is deprecated and will be removed in a
26+
future Pycytominer release. Please use
27+
`CytoTable <https://github.com/cytomining/CytoTable>`_ instead.
28+
2429
Attributes
2530
----------
2631
profile_dir : str
@@ -139,6 +144,11 @@ def extract_filename_metadata(
139144
class AggregateDeepProfiler:
140145
"""This class holds all functions needed to aggregate the DeepProfiler (DP) run.
141146
147+
.. warning::
148+
The ``AggregateDeepProfiler`` class is deprecated and will be removed
149+
in a future Pycytominer release. Please use
150+
`CytoTable <https://github.com/cytomining/CytoTable>`_ instead.
151+
142152
Attributes
143153
----------
144154
deep_data : DeepProfilerData
@@ -346,6 +356,11 @@ def aggregate_deep(self):
346356
class SingleCellDeepProfiler:
347357
"""This class holds functions needed to analyze single cells from the DeepProfiler (DP) run. Only pycytominer.normalization() is implemented.
348358
359+
.. warning::
360+
The ``SingleCellDeepProfiler`` class is deprecated and will be removed
361+
in a future Pycytominer release. Please use
362+
`CytoTable <https://github.com/cytomining/CytoTable>`_ instead.
363+
349364
Attributes
350365
----------
351366
deep_data : DeepProfilerData

pycytominer/cyto_utils/annotate_custom.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ def annotate_cmap(
7878
) -> pd.DataFrame:
7979
"""Annotates data frame with custom options according to CMAP specifications
8080
81+
.. warning::
82+
``annotate_cmap`` is deprecated and will be removed in a future
83+
Pycytominer release.
84+
8185
Parameters
8286
----------
8387
annotated : pd.DataFrame

pycytominer/cyto_utils/cell_locations.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ class CellLocation:
1919
"""This class holds all the functions augment a metadata file with X,Y
2020
locations of cells in each image.
2121
22+
.. warning::
23+
The ``CellLocation`` class is deprecated and will be removed in a
24+
future Pycytominer release.
25+
2226
In the metadata file, which is either a CSV or a Parquet file,
2327
- Each row is single multi-channel image
2428
- Each image is indexed by multiple columns, e.g., `Metadata_Plate`, `Metadata_Well`,`Metadata_Site`

pycytominer/cyto_utils/cells.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ class SingleCells:
3535
"""This is a class to interact with single cell morphological profiles. Interaction
3636
includes aggregation, normalization, and output.
3737
38+
.. warning::
39+
The ``SingleCells`` class is deprecated and will be removed in a
40+
future Pycytominer release. Please use
41+
`CytoTable <https://github.com/cytomining/CytoTable>`_ instead.
42+
3843
Attributes
3944
----------
4045
sql_file : str

pycytominer/cyto_utils/collate.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ def collate(
4646
):
4747
"""Collate the CellProfiler-created CSVs into a single SQLite file by calling cytominer-database
4848
49+
.. warning::
50+
With the deprecation of cytominer-database, ``collate`` is deprecated
51+
and will be removed in a future Pycytominer release. Please consider
52+
using CellProfiler's ``ExportToDatabase`` module to create single-cell
53+
SQLite files, or `CytoTable <https://github.com/cytomining/CytoTable>`_
54+
to create single-cell Parquet files.
55+
4956
Parameters
5057
----------
5158
batch : str

0 commit comments

Comments
 (0)