README
Delumps is an Rust extension module for computing semantic similarity between individuals within C2S2, a tool for phenotype-driven identification of disease subgroups.
Setup
We deploy Delumps to Python Package Index (PyPi), so installation with PIP should be possible:
python3 -m pip install delumps
Install in production mode
Alternatively, Delumps can be installed from sources:
cd crates/delumps # Change to the extension directory
python3 -m pip install .
Note, the installation may fail if Rust toolchain is not available on your system.
Install in development mode
For package developers, the package is installed into the active virtual environment by running:
maturin develop -E test
# or
python3 -m pip install -e .[test]
The package is installed in editable mode along with the test extras, that include Pytest and Numpy.
The tests are run from the workspace folder:
pytest
Use with Stratiphy
Delumps provides a delumps.SimilarityMatrixCreatorFactory
that can create a delumps.SimilarityMatrixCreator to use with Stratiphy.
import delumps
fpath_hpo = '/path/to/hp.json'
fpath_ic_mica = '/path/to/term-pair-similarity.csv.gz'
factory = delumps.SimilarityMatrixCreatorFactory.from_hpo_and_ic_mica(fpath_hpo, fpath_ic_mica)
The factory needs path to a HPO JSON file and an IC MICA file with precomputed information content (IC) for the most informative common ancestor (MICA) term of an HPO term pair.
Then, similarity matrix creator that uses the Phenomizer semantic similarity measure can be configured by running:
phenomizer_smc = factory.create_phenomizer_smc()
phenomizer_smc can be used as a SimilarityMatrixCreator component of the Stratiphy framework.
Release
We deploy Delumps to PyPi:
cd crates/delumps
maturin publish
Metadata
Release files for delumps 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| delumps-0.1.11.tar.gz | 2.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| delumps-0.1.11-cp310-abi3-manylinux_2_34_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.34+ x86-64 | Details |
Total release size: 2.9 MB
Release files / delumps-0.1.11.tar.gz
| Download URL | delumps-0.1.11.tar.gz |
|---|---|
| Size | 2.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aee215dc6b957a2ddd3fd2a437752a29a1c041b274274f47c16b80e6353f382c
|
|
BLAKE2b-256 checksum How to use checksums |
604294ec852bad5ece1cab992ae146a25698272e3f91984e67e44f7fd72bce2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.12.6
|
Release files / delumps-0.1.11-cp310-abi3-manylinux_2_34_x86_64.whl
| Download URL | delumps-0.1.11-cp310-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 675.8 kB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
cb073ccfbee3f6a9913ec750a6b7a3a2207239b0ea7981a9aa91c72816b00628
|
|
BLAKE2b-256 checksum How to use checksums |
f28c794a80947f97b00ff5d3b9c28a83c63ac156158205b6efc5975c5504df5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.12.6
|