diff --git a/docs/conf.py b/docs/conf.py index e90c3e8d..3cc016b9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -115,7 +115,7 @@ "mudata": ("https://mudata.readthedocs.io/stable/", None), "matplotlib": ("https://matplotlib.org/stable/", None), "numpy": ("https://numpy.org/doc/stable/", None), - "pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None), + "pandas": ("https://pandas.pydata.org/docs/", None), "python": ("https://docs.python.org/3", None), "scipy": ("https://docs.scipy.org/doc/scipy/", None), "scanpy": ("https://scanpy.readthedocs.io/en/stable/", None), diff --git a/pertpy/tools/_augur.py b/pertpy/tools/_augur.py index 180ce45e..8e31ed27 100644 --- a/pertpy/tools/_augur.py +++ b/pertpy/tools/_augur.py @@ -792,7 +792,8 @@ def predict( adata.obs["augur_score"] = nan for cell_type in track(adata.obs["cell_type"].unique(), description="Processing data..."): cell_type_subsample = adata[adata.obs["cell_type"] == cell_type].copy() - if augur_mode in ("default", "permute"): + + if augur_mode in ("default", "permute") and len(cell_type_subsample) >= min_cells: cell_type_subsample = ( self.select_highly_variable(cell_type_subsample) if not select_variance_features