Python migration of the STAAR R package
Project description
pySTAAR
Python 版 STAAR(R 包)迁移项目,面向中文统计遗传/基因组分析用户。
For English docs, see docs/README.md.
项目定位
- 已完成计划内功能迁移(到
STAAR-56)。 - 默认 workflow 入口覆盖:STAAR、条件分析、Binary SPA、单变异得分检验、AI-STAAR。
- 当前 parity 基线为 pure-Python 路径(related workflows 不依赖预计算 R 协方差文件)。
快速安装
普通用户(发布版):
pip install pystaar
本仓库开发模式:
pip install -e '.[dev]'
快速运行
from pystaar import staar_unrelated_glm
res = staar_unrelated_glm(
dataset="example",
seed=600,
rare_maf_cutoff=0.05,
)
print("STAAR-O:", res["results_STAAR_O"])
R 用户迁移入口
- 完整迁移说明:
docs/migration_from_r.md - 15 分钟迁移清单:
docs/migration_r_quickstart_cn.md - 数据目录模板:
docs/data_directory_template_cn.md
文档导航
- 中文快速入门:
docs/README_CN.md - 英文快速入门:
docs/README.md - 安装与环境:
docs/installation.md - 性能对比总览(Python vs R):
docs/performance_comparison.md - 性能口径说明:官方跨平台结论以 OpenBLAS backend 为准;macOS Accelerate 本地参考见
examples/1kg_parity/README.md。 - 本地 1KG 对比示例(数据级 + 模拟完整 workflow):
examples/1kg_parity/README.md - 教程:
- API 文档:
- 变更记录:
CHANGELOG.md
一致性说明
- 历史偏差记录
DEV-001已关闭,仅保留历史背景。 - 当前状态与 release 口径以
reports/summary.md和reports/deviations.md为准。
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 pystaar-1.0.0.tar.gz.
File metadata
- Download URL: pystaar-1.0.0.tar.gz
- Upload date:
- Size: 6.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33e239917dc1bb7dc36e0db8698d1bf63ec4ee8fb66b99881d17384a50898706
|
|
| MD5 |
abd1d104c9bae0bde21b4796f4a298e8
|
|
| BLAKE2b-256 |
d1ac37ca9037d5392f2b332b23ff5ca7791f997ec2d85062a6cf56e5ca115e0c
|
Provenance
The following attestation bundles were made for pystaar-1.0.0.tar.gz:
Publisher:
publish.yml on Shuqian-Tech/pySTAAR
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pystaar-1.0.0.tar.gz -
Subject digest:
33e239917dc1bb7dc36e0db8698d1bf63ec4ee8fb66b99881d17384a50898706 - Sigstore transparency entry: 928401454
- Sigstore integration time:
-
Permalink:
Shuqian-Tech/pySTAAR@61f655e37513ff69b42fab353a7e81b2a54b5702 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Shuqian-Tech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@61f655e37513ff69b42fab353a7e81b2a54b5702 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pystaar-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pystaar-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e567d0886d90e48420cb8bd047a6b82ac293f4b3fd176735994a4ee790d21eb5
|
|
| MD5 |
e3002446b503b7faa7900184b925067d
|
|
| BLAKE2b-256 |
8aad67506e499a11072866bf4ab62dea0ca543eac09b358119c5dd445ef989b2
|
Provenance
The following attestation bundles were made for pystaar-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on Shuqian-Tech/pySTAAR
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pystaar-1.0.0-py3-none-any.whl -
Subject digest:
e567d0886d90e48420cb8bd047a6b82ac293f4b3fd176735994a4ee790d21eb5 - Sigstore transparency entry: 928401455
- Sigstore integration time:
-
Permalink:
Shuqian-Tech/pySTAAR@61f655e37513ff69b42fab353a7e81b2a54b5702 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Shuqian-Tech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@61f655e37513ff69b42fab353a7e81b2a54b5702 -
Trigger Event:
release
-
Statement type: