Skip to main content

Projection into SVD space for genetic data

Project description

projectionSVD (v0.1.3)

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 PLINK and PCAone. projectionSVD requires estimated allele frequencies, eigenvalues and SNP loadings to perform the projection.

Installation

# Build and install via PyPI
pip install projectionSVD

# Download source and install via pip
git clone https://github.com/Rosemeis/projectionSVD.git
cd projectionSVD
pip install .

# Download source and install in new Conda environment
git clone https://github.com/Rosemeis/projectionSVD.git
conda env create -f environment.yml
conda activate projectionSVD

# The "projectionSVD" main caller will now be available

Quick usage

# Check help message of the program
projectionSVD -h

# Perform projection using PCAone output (use --pcaone for proper scaling)
projectionSVD --bfile new --freqs old.afreq --eigvals old.eigvals --loadings old.loadings --threads 32 --out new --pcaone

# Outputs eigenvectors of new dataset (new.eigvecs2)

Options

  • --pcaone, indicate that files are from PCAone to perform proper scaling
  • --freqs-col, specify which column to use in frequency file (6)
  • --batch, process projection in batches of specified number of SNPs
  • --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.3.tar.gz (167.6 kB view details)

Uploaded Source

Built Distribution

projectionSVD-0.1.3-cp311-cp311-macosx_11_0_arm64.whl (91.1 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: projectionsvd-0.1.3.tar.gz
  • Upload date:
  • Size: 167.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for projectionsvd-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c2b6f776d04f406a8f97a6f8f0af9de7d46510cd557a9ebefb03509d60466722
MD5 340615e065cd38ecc6d41966c855afd1
BLAKE2b-256 1971820056ebcd3747b4a00ee549eaba4a4a1eae54f0e57de8cb8ea03488da80

See more details on using hashes here.

File details

Details for the file projectionSVD-0.1.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for projectionSVD-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 890006dee64f73b0d82cf1f6efea36fff0f1d44df7cb35b7f17b02472ff495cd
MD5 f5d3c9e7ec61f9e5dda5ed83dbc6290f
BLAKE2b-256 08bfb0f86affe1515db543535ea85de66e744f130c899b1b34f5c64397b63fca

See more details on using hashes here.

Supported by

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