Skip to content

Commit

Permalink
Merge pull request #20 from metaspace2020/fix-coloc-docs
Browse files Browse the repository at this point in the history
Fix coloc docs
  • Loading branch information
tdrose authored Feb 6, 2024
2 parents 9c7e08d + 95f3131 commit f242a01
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
8 changes: 8 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ metaspace_converter
:members:
:undoc-members:
:show-inheritance:

metaspace_converter.colocalization
----------------------------------

.. automodule:: metaspace_converter.colocalization
:members:
:undoc-members:
:show-inheritance:
11 changes: 6 additions & 5 deletions metaspace_converter/colocalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ def coloc_ml_preprocessing(
Preprocessing for colocalization analysis according to the colocML publication
(https://doi.org/10.1093/bioinformatics/btaa085).
In the publication the authors evaluated colocalization metrics and preprocessing approaches.
In the publication, the authors evaluated colocalization metrics and preprocessing approaches.
They found the best performance for
1) median filtering of ion images with a (3, 3) kernel size and
2) quantile thresholding ad 50%, meaning all pixels with intensities below the 50%
quantile set to 0.
1. median filtering of ion images with a (3, 3) kernel size and
2. quantile thresholding at 50%, meaning all pixels with intensities below the 50%
quantile set to 0.
This function performs the same preprocessing steps.
Recommended for call before running the ``colocalization`` function.
Expand Down Expand Up @@ -76,7 +77,7 @@ def colocalization(adata: AnnData, layer: Optional[str] = "coloc_ml_preprocessin
In combination with the ``colocML_preprocessing`` function, this metric performed best in the
colocML publication (https://doi.org/10.1093/bioinformatics/btaa085).
It is recommended to call the the ``coloc_ml_preprocessing`` function beforehand.
It is recommended to call the ``coloc_ml_preprocessing`` function beforehand.
Args:
adata: An AnnData object.
Expand Down

0 comments on commit f242a01

Please sign in to comment.