Projection into SVD space for genetic data
Project description
projectionSVD (v0.1.5)
projectionSVD is a small command-line program written in Python/Cython to project a dataset onto a principal component space based on genotype data. It takes binary PLINK files as genotype input and works with PCA output from programs like halkoSVD, PLINK, and PCAone. projectionSVD requires estimated allele frequencies, eigenvalues and SNP loadings to perform the projection.
Installation
# Option 1: Build and install via PyPI
pip install projectionSVD
# Option 2: Download source and install via pip
git clone https://github.com/Rosemeis/projectionSVD.git
cd projectionSVD
pip install .
# Option 3: Download source and install in a new Conda environment
git clone https://github.com/Rosemeis/projectionSVD.git
conda env create -f projectionSVD/environment.yml
conda activate projectionSVD
You can now run the program with the projectionSVD command.
Quick usage
# Check help message of the program
projectionSVD -h
# Perform projection using PCAone output
projectionSVD --bfile new --freqs old.afreq --eigvals old.eigvals --loadings old.loadings --threads 32 --out new
# Outputs eigenvectors of new dataset (new.eigvecs)
Options
--freqs-col, specify which column to use in frequency file (6)--batch, process projection in batches of specified number of SNPs (8192)--raw, only output eigenvectors without FID/IID
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
projectionsvd-0.1.5.tar.gz
(165.6 kB
view details)
File details
Details for the file projectionsvd-0.1.5.tar.gz.
File metadata
- Download URL: projectionsvd-0.1.5.tar.gz
- Upload date:
- Size: 165.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bc980a74eced0b6c517c8658d7011da9b89146fcf3548209ed8d6a4ed70b1a4
|
|
| MD5 |
a9f5b239cefc511a2925229aee543a7b
|
|
| BLAKE2b-256 |
d92af745cc244bcfe8041c9c95e7f4692c09cc3de99543e50a4224a973ad38c6
|