Skip to main content

Projection into SVD space for genetic data

Project description

projectionSVD (v0.2.0)

DOI
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.2.0.tar.gz (166.7 kB view details)

Uploaded Source

File details

Details for the file projectionsvd-0.2.0.tar.gz.

File metadata

  • Download URL: projectionsvd-0.2.0.tar.gz
  • Upload date:
  • Size: 166.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for projectionsvd-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4fa9fcbc1159fe651c4e0a24f0dfa5a4470315737749efe67d4961fef1b834e1
MD5 3420e3f142929ea6435a8a4fc2245cdb
BLAKE2b-256 2911b2900c727d4580cb424cfb497acf8ef2e5a8426f3fc1a7f8fc3e53806877

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page