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 release of mulink from PyPI:
pip install mulink
mulink is under active development. You can install development versions via:
pip install git+https://github.com/lucas-diedrich/mulink.git@main
Release notes
See the changelog.
Contact
If you found a bug or have an idea for a new feature, 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.
Metadata
Release files for mulink 0.0.3
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 |
|---|---|---|---|---|
| mulink-0.0.3.tar.gz | 710.6 kB | With provenance | Details for mulink-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mulink-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for mulink-0.0.3-py3-none-any.whl |
Total release size: 720.5 kB
Release files / mulink-0.0.3.tar.gz
| Download URL | mulink-0.0.3.tar.gz |
|---|---|
| Size | 710.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ac210200eefc5879aa753de25e420fab5ef134083837bf89fffbe66413953af
|
|
BLAKE2b-256 checksum How to use checksums |
e85191c482dc431540c15fc72d221748347189928d70cc05d94d1762d6345243
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.
Transparency logRelease files / mulink-0.0.3-py3-none-any.whl
| Download URL | mulink-0.0.3-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2bcdc90d79a4772ff8205e558ec2cae1bdde23c86dad2d7101544f409fc9ca8
|
|
BLAKE2b-256 checksum How to use checksums |
6c00e5d80afe8c91aef19fee2db186d64a76dae2fb48fca2c0d96fa14e767319
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.
Transparency logSecurity for mulink 0.0.3
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mulink-0.0.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.
Transparency logA 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.