Links between modalities in mudata
Project description
mulink
Links between modalities in mudata
Getting started
mulink models feature relationships between mudata modalities as directed acyclic graph. To work with this mapping, it extends the namespace of mudata with a custom link attribute. The individual functionalities are implemented as accessors to this namespace.
import mudata as md
import mulink # registers the `link` namespace on mudata
from scipy.sparse import csr_matrix
# minimal example
mdata = mulink.simulate.hierarchical_mudata(n_mod=3)
assert isinstance(mdata, md.MuData)
assert "feature_mapping" in mdata.varp.keys()
assert hasattr(mdata, "link")
# add linkage matrix
mdata.link.add_link(csr_matrix(...))
# querying
mdata.link.query.descendants("mod0-0")
mdata.link.query.ancestors("mod2-0")
# plotting
mdata.link.pl.graph()
For more information, please refer to the documentation, in particular, the API documentation and the Design Document.
Installation
You need to have Python 3.11 or newer installed on your system. If you don't have Python installed, we recommend installing uv.
There are several alternative options to install mulink:
- Install the latest development version:
pip install git+https://github.com/lucas-diedrich/mulink.git@main
Release notes
See the changelog.
Contact
If you found a bug, please use the issue tracker.
Citation
This project was started at the scverse proteomics hackathon in Berlin 2026. Comparable features are implemented in the QFeatures package in R.
scverse proteomics working group 2026. mulink.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mulink-0.0.1.tar.gz.
File metadata
- Download URL: mulink-0.0.1.tar.gz
- Upload date:
- Size: 720.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aedaa5424e48b11dc298c3dbee12bf5bbe10380b4fdff9fa7033a1a0e0d23395
|
|
| MD5 |
f897ebb82b20cc8f0106921cda8fafad
|
|
| BLAKE2b-256 |
d6b3883778d2dfd2bbb1faae6f973d505a70f74ca2978cf92dfa95e810e5e983
|
Provenance
The following attestation bundles were made for mulink-0.0.1.tar.gz:
Publisher:
release.yaml on lucas-diedrich/mulink
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mulink-0.0.1.tar.gz -
Subject digest:
aedaa5424e48b11dc298c3dbee12bf5bbe10380b4fdff9fa7033a1a0e0d23395 - Sigstore transparency entry: 1790876018
- Sigstore integration time:
-
Permalink:
lucas-diedrich/mulink@cb3ed167823c58b850341f611ddd9e3422f8b2b8 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/lucas-diedrich
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@cb3ed167823c58b850341f611ddd9e3422f8b2b8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mulink-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mulink-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eed79a71ce7c3a38ef20bd632b64c7a9aad8e795e9b8c262c123652f90897efd
|
|
| MD5 |
3cf870ab7153b30c805f164266055c44
|
|
| BLAKE2b-256 |
f82f0867ec74d65b382d8a1d031317ae22f2971905f86072ce69398e900c4394
|
Provenance
The following attestation bundles were made for mulink-0.0.1-py3-none-any.whl:
Publisher:
release.yaml on lucas-diedrich/mulink
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mulink-0.0.1-py3-none-any.whl -
Subject digest:
eed79a71ce7c3a38ef20bd632b64c7a9aad8e795e9b8c262c123652f90897efd - Sigstore transparency entry: 1790876037
- Sigstore integration time:
-
Permalink:
lucas-diedrich/mulink@cb3ed167823c58b850341f611ddd9e3422f8b2b8 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/lucas-diedrich
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@cb3ed167823c58b850341f611ddd9e3422f8b2b8 -
Trigger Event:
release
-
Statement type: