GOTVis — Grassmann functional embeddings for single-cell visualisation
GOTVis is the visualisation companion of GOTClust. It turns Grassmann
objects (local subspaces U_list or the Grassmann cost matrix C) into
2-D / 3-D coordinates.
0.2 breaking changes
functional_embeddingis renamed toembedding. The old name is kept as a deprecated alias (removed in 1.0).- The whole gamma / Sinkhorn embedding family is removed
(
sinkhorn_embedding,sinkhorn_svd_embedding,barycentric_embedding,sinkhorn_spectral_embedding,gammagram_embedding,resolve_gamma,coerce_gamma,gamma_affinity). A Sinkhorn gamma encodes cell → prototype membership, not cell-cell manifold geometry, so gamma-based MDS/t-SNE plots are misleading (e.g. trajectory data collapses to a line). t-SNE support is preserved asembedding(..., method="tsne")on Grassmann objects.
Install
pip install -e .
pip install "gotvis[tsne]" # scikit-learn TSNE backend
pip install "gotvis[opentsne]" # openTSNE backend (optional)
pip install "gotvis[all]" # + anndata, plotting, grassmann-ot
Usage
import gotvis
# from the GOTClust/GSSC info dict (use its Grassmann cost matrix, not gamma)
labels, info = grassmann_spectral_clustering(H, 7)
Y = gotvis.embedding(C=info["C"], method="tsne")
Y = gotvis.embedding(C=info["C"], method="mds")
Y = gotvis.embedding(C=info["C"], method="laplacian", knn=15)
# from raw input: H (r, n_cells) -> local subspaces -> cost matrix
Y = gotvis.embedding(H, k=30, p=3, method="laplacian")
# AnnData
gotvis.embed(adata, C=info["C"], method="tsne") # writes adata.obsm["X_gotvis"]
gotvis.plot_embedding(adata, color="cell_type")
API
| Method | Input | Geometry | Cost |
|---|---|---|---|
embedding(method="laplacian") |
H / U_list / C | kNN graph + Laplacian Eigenmaps (default) | O(n²) |
embedding(method="mds") |
H / U_list / C | classical MDS, optional landmark approximation | O(n³) |
embedding(method="tsne") |
H / U_list / C | t-SNE with metric="precomputed" on Grassmann distance | O(n²) |
mds_embedding(D) / tsne_embedding(D) |
any distance matrix | generic fallbacks | — |
gotclust_embed(H=/C=/U_list=, method=...) is a compatibility wrapper. Passing
gamma= raises TypeError.
Metadata
Release files for gotvis 0.3.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gotvis-0.3.7.tar.gz | 20.6 kB | Without provenance | Details for gotvis-0.3.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gotvis-0.3.7-py3-none-any.whl | Python 3 | none | any | Details for gotvis-0.3.7-py3-none-any.whl |
Total release size: 39.3 kB
Release files / gotvis-0.3.7.tar.gz
| Download URL | gotvis-0.3.7.tar.gz |
|---|---|
| Size | 20.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
842cb1e96857b5295ab923b732c1568ddcce12608470ca40a7b8b51a7eb73390
|
|
BLAKE2b-256 checksum How to use checksums |
f9ce1be14eb59a93831d2b4c3fce224a3f851007de4862f749ac578ff547935b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.18
|
Release files / gotvis-0.3.7-py3-none-any.whl
| Download URL | gotvis-0.3.7-py3-none-any.whl |
|---|---|
| Size | 18.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e1bc2170f7288868e514f226044fb8c70c617ab05ddbb7b4273fed13f3e5f2e
|
|
BLAKE2b-256 checksum How to use checksums |
5c87df95252af3becf5afb288b01a67aca7070cbe7409272abe876d6e2ac81d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.18
|
Security for gotvis 0.3.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.