Cython/Python implementation of Halko algorithm
This is a fast implementation of Halko algorithm in Python/Cython for genotype data. It takes binary PLINK format (*.bed, *.bim, *.fam) as input. For simplicity, mean imputation is performed for missing data.
It is inspired by the lovely PCAone software! Have a look here.
Installation
# Option 1: Build and install via PyPI
pip install halkoSVD
# Option 2: Download source and install via pip
git clone https://github.com/Rosemeis/halkoSVD.git
cd halkoSVD
pip install .
# Option 3: Download source and install in a new Conda environment
git clone https://github.com/Rosemeis/halkoSVD.git
conda env create -f halkoSVD/environment.yml
conda activate halkoSVD
You can now run the program with the halkoSVD command.
Quick usage
Provide halkoSVD with the file prefix of the PLINK files.
# Check help message of the program
halkoSVD -h
# Extract the top 10 PCs
halkoSVD --bfile input --threads 32 --pca 10 --out halko
Options
--seed, set random seed for reproducibility (42)--power, specify the number of power iterations (10)--batch, specify the batch size to process SNPs (8192)--loadings, save the SNP loadings--raw, only output eigenvectors without FID/IID
Metadata
Release files for halkoSVD 0.5.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 |
|---|---|---|---|---|
| halkosvd-0.5.0.tar.gz | 167.5 kB | Without provenance | Details for halkosvd-0.5.0.tar.gz |
Release files / halkosvd-0.5.0.tar.gz
| Download URL | halkosvd-0.5.0.tar.gz |
|---|---|
| Size | 167.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72efca4a19930e718d775fc31c8c856047e0cbfc3ba20daaea15e68be96342a5
|
|
BLAKE2b-256 checksum How to use checksums |
adb03e316f057b58dac9c9c66343d030d24a2c23470591d312c7ab0d2d6c49e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for halkoSVD 0.5.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.