luci-mr
LD-Unbiased Conditional Inference (LUCI), Sex-Stratified Two-Sample Mendelian Randomization (2SMR), and Multi-Evidence Drug Target Prioritization (MR-Tx, CHAIN_LD, MEET).
luci-mr is a lightweight, pure-Python toolkit for proteome-wide Mendelian randomization and causal drug target discovery. It provides:
- Two-Sample MR & Sensitivity Suite (
luci_mr.mr): Wald ratio, fixed/random-effects IVW, Cochran's $Q$ & $I^2$, weighted median, MR-Egger, radial outlier filtering, sex-stratified interaction testing, and forward/reverse directional asymmetry classification. - LUCI & Panel Degeneracy Diagnostics (
luci_mr.luci): Quantifies reference-panel LD rank degeneracy (duplicate variant fraction, collinear pairs, effective independent rank $n_{\mathrm{eff}}$), performs LD-unbiased shrinkage conditional inference with $z$-cap protection, and computes Wakefield ABF colocalization (PP0–PP4). - Target Prioritization & Multi-Evidence Fusion (
luci_mr.scoring): Auditable 7-dimensionalMR-Txpriority scoring (0–100), mechanisticCHAIN_LDcausal evidence chain scoring, and calibratedMEETmulti-evidence ranking.
Installation
pip install luci-mr
Quickstart (Built-in Demo Data)
import luci_mr
# 1. Run built-in 2SMR + Colocalization + LUCI + Target Prioritization demo
data = luci_mr.demo_dataset()
mr_res = luci_mr.run_mr(data["bx"], data["se_x"], data["by"], data["se_y"])
coloc_res = luci_mr.coloc_abf(data["bx"], data["se_x"], data["by"], data["se_y"])
deg = luci_mr.panel_degeneracy_diagnostics(data["G"])
ranked = luci_mr.score_mrtx(data["targets"])
print("IVW beta:", round(mr_res["ivw_b"], 4), "p:", f"{mr_res['ivw_p']:.2e}")
print("Coloc PP4:", round(coloc_res["PP4"], 4))
print("Panel n_eff:", deg["n_eff"], "dup_frac:", round(deg["dup_frac"], 3))
print(ranked[["protein", "mrtx_total", "chain_ld_score", "meet_score"]].head())
Command-Line Interface
luci-mr demo
License
MIT License.
Metadata
Release files for luci-mr 0.1.0
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 |
|---|---|---|---|---|
| luci_mr-0.1.0.tar.gz | 11.7 kB | Without provenance | Details for luci_mr-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| luci_mr-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for luci_mr-0.1.0-py3-none-any.whl |
Total release size: 23.4 kB
Release files / luci_mr-0.1.0.tar.gz
| Download URL | luci_mr-0.1.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
227ec90b2f02b4610f446bd93d3bc6d51954c27a7986764532048b7f1bcbf301
|
|
BLAKE2b-256 checksum How to use checksums |
446b59639347cb850788af5f47fdea833989b76741d8f120d0f27661b78606b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Release files / luci_mr-0.1.0-py3-none-any.whl
| Download URL | luci_mr-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e6345282961715e0486595e3c3e5325136779a5d8ee5788238d68ff67fa2c67
|
|
BLAKE2b-256 checksum How to use checksums |
d3d5e6d35a7ca1cc8b455c888f99e62d236c1429951a6aad409f46987aca0215
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Security for luci-mr 0.1.0
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.