Skip to main content

Projection into SVD space for genetic data

Project description

projectionSVD (v0.1.4)

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

# 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 (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.4.tar.gz (167.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: projectionsvd-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 fadd9d9860eb488d3a91f3424aa4855fc493bc69ae1fe9f381daba2f3d526cd7
MD5 bb2ecf42fc4bd368a6bb4a44cbcdd1d1
BLAKE2b-256 cd4e83aaeda40af4db983e4ec6157fbb00a2efe1c5538af9520a5ae7f34e0d8b

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