You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ehrapy/tools/_scanpy_tl_api.py
+7-11Lines changed: 7 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -604,17 +604,15 @@ def paga(
604
604
) ->EHRData|AnnData|None: # pragma: no cover
605
605
"""Mapping out the coarse-grained connectivity structures of complex manifolds :cite:p:`Wolf2019`.
606
606
607
-
By quantifying the connectivity of partitions (groups, clusters),
608
-
partition-based graph abstraction (PAGA) generates a much
607
+
By quantifying the connectivity of partitions (groups, clusters), partition-based graph abstraction (PAGA) generates a much
609
608
simpler abstracted graph (*PAGA graph*) of partitions, in which edge weights
610
609
represent confidence in the presence of connections. By tresholding this
611
610
confidence in :func:`~ehrapy.plot.paga`, a much simpler representation of the
612
611
manifold data is obtained, which is nonetheless faithful to the topology of the manifold.
613
612
The confidence should be interpreted as the ratio of the actual versus the
614
-
expected value of connections under the null model of randomly connecting
615
-
partitions. We do not provide a p-value as this null model does not
616
-
precisely capture what one would consider "connected" in real data, hence it
617
-
strongly overestimates the expected value. See an extensive discussion of this in :cite:p:`Wolf2019`.
613
+
expected value of connections under the null model of randomly connecting partitions.
614
+
We do not provide a p-value as this null model does not precisely capture what one would consider "connected" in real data, hence it strongly overestimates the expected value.
615
+
See an extensive discussion of this in :cite:p:`Wolf2019`.
618
616
619
617
.. note::
620
618
Note that you can use the result of :func:`~ehrapy.plot.paga` in
@@ -675,11 +673,9 @@ def ingest(
675
673
The function uses a knn classifier for mapping labels and the UMAP package :cite:p:`McInnes2018` for mapping the embeddings.
676
674
677
675
.. note::
678
-
We refer to this *asymmetric* dataset integration as *ingesting*
679
-
annotations from reference data to new data. This is different from
680
-
learning a joint representation that integrates both datasets in an
681
-
unbiased way, as CCA (e.g. in Seurat) or a conditional VAE (e.g. in
682
-
scVI) would do.
676
+
We refer to this *asymmetric* dataset integration as *ingesting* annotations from reference data to new data.
677
+
This is different from learning a joint representation that integrates both datasets in an
678
+
unbiased way, as CCA (e.g. in Seurat) or a conditional VAE (e.g. in scVI) would do.
683
679
684
680
You need to run :func:`~ehrapy.preprocessing.neighbors` on `edata_ref` before passing it.
0 commit comments