Fast Model-X Kernel-based Set Testing Toolkits
https://pypi.org/project/fast-kernel-set-test/0.1.0/
This folder has been updated with both the FastKAST and QuadKAST
Please check sub-branch for detailed instruction on each specific method.
Table of contents:
Installation
- You need python >= 3.60 in order to run the code (anaconda3 recommended)
pip install fast-kernel-set-testor install from source
You can either follow the standard pipeline FastKAST_annot.py and QuadKAST_annot.py, or import the neccessary function to build based on your own I/O.
Basic usage
FastKAST
To run the demo FastKAST code with a customized window size, you can generate a annotation file with "start_index end_index" as a row, and run
python FastKAST_annot.py --bfile ./example/sim --phen ./example/sim.pheno --annot ./example/sim.new.annot
Or directly run
sh run_rbf_annot.sh
QuadKAST
To run the demo QuadKAST code with a customized window size, you can generate a annotation file with "start_index end_index" as a row, and run
python QuadKAST_annot.py --bfile ./example/sim --phen ./example/sim.pheno --annot ./example/sim.new.annot
Or directly run
sh run_quad_annot.sh
Useful functions
- Single trait analysis
## Given covariates c: (NxM), input Z: (NxD), and output y: (Nx1)
from FastKAST import getfullComponentPerm
results = getfullComponentPerm(c,Z,y,Perm=10)
## results: {'pval': [obs_pval, perm_pval1, ..., perm_pval10]}
- Multi-traits analysis
## Given covariates c: (NxM), input Z: (NxD), and output y: (NxK)
from FastKAST import getfullComponentMulti
results = getfullComponentMulti(c,Z,y)
## results: {'pval': [obs_pval1, obs_pval2, ..., obs_pvalK]}
Data availability
The detailed statistics used to generate the main table and the Venn diagram of the paper are provided in the Data folder
✅ Efficient multi-traits analysis (Sep 30, 2024)
Metadata
Release files for fast-kernel-set-test 0.1.1
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 |
|---|---|---|---|---|
| fast-kernel-set-test-0.1.1.tar.gz | 17.6 kB | Without provenance | Details for fast-kernel-set-test-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fast_kernel_set_test-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for fast_kernel_set_test-0.1.1-py3-none-any.whl |
Total release size: 38.4 kB
Release files / fast-kernel-set-test-0.1.1.tar.gz
| Download URL | fast-kernel-set-test-0.1.1.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f5ee4fcf7eebc68c76cc71ea48be827cace1f8366af3f1bfe7c7b4c0846b37b
|
|
BLAKE2b-256 checksum How to use checksums |
1d94c40b2840f2dcb45225a0866ded985cc148db6f9408cee63ac144acc40584
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.5
|
Release files / fast_kernel_set_test-0.1.1-py3-none-any.whl
| Download URL | fast_kernel_set_test-0.1.1-py3-none-any.whl |
|---|---|
| Size | 20.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51bac5a61f7bc9f18e4e40a1c5d764dd4937c683a9297f9492cde441b356b014
|
|
BLAKE2b-256 checksum How to use checksums |
8e42ef8d99fed76dc9225f346a5903a8ce221ae8e05ef9ad95fd190af8b57636
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.5
|
Security for fast-kernel-set-test 0.1.1
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.