Package: SNPRelate 1.41.0

Xiuwen Zheng

SNPRelate: Parallel Computing Toolset for Relatedness and Principal Component Analysis of SNP Data

Genome-wide association studies (GWAS) are widely used to investigate the genetic basis of diseases and traits, but they pose many computational challenges. We developed an R package SNPRelate to provide a binary format for single-nucleotide polymorphism (SNP) data in GWAS utilizing CoreArray Genomic Data Structure (GDS) data files. The GDS format offers the efficient operations specifically designed for integers with two bits, since a SNP could occupy only two bits. SNPRelate is also designed to accelerate two key computations on SNP data using parallel computing for multi-core symmetric multiprocessing computer architectures: Principal Component Analysis (PCA) and relatedness analysis using Identity-By-Descent measures. The SNP GDS format is also used by the GWASTools package with the support of S4 classes and generic functions. The extended GDS format is implemented in the SeqArray package to support the storage of single nucleotide variations (SNVs), insertion/deletion polymorphism (indel) and structural variation calls in whole-genome and whole-exome variant data.

Authors:Xiuwen Zheng [aut, cre, cph], Stephanie Gogarten [ctb], Cathy Laurie [ctb], Bruce Weir [ctb, ths]

SNPRelate_1.41.0.tar.gz
SNPRelate_1.41.0.zip(r-4.5)SNPRelate_1.41.0.zip(r-4.4)SNPRelate_1.41.0.zip(r-4.3)
SNPRelate_1.41.0.tgz(r-4.4-x86_64)SNPRelate_1.41.0.tgz(r-4.4-arm64)SNPRelate_1.41.0.tgz(r-4.3-x86_64)SNPRelate_1.41.0.tgz(r-4.3-arm64)
SNPRelate_1.41.0.tar.gz(r-4.5-noble)SNPRelate_1.41.0.tar.gz(r-4.4-noble)
SNPRelate_1.41.0.tgz(r-4.4-emscripten)SNPRelate_1.41.0.tgz(r-4.3-emscripten)
SNPRelate.pdf |SNPRelate.html
SNPRelate/json (API)
NEWS

# Install 'SNPRelate' in R:
install.packages('SNPRelate', repos = c('https://bioc.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/zhengxwen/snprelate/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

On BioConductor:SNPRelate-1.41.0(bioc 3.21)SNPRelate-1.40.0(bioc 3.20)

infrastructuregeneticsstatisticalmethodprincipalcomponentbioinformaticsgds-formatpcasimdsnpopenblascpp

12.76 score 101 stars 18 packages 1.5k scripts 2.9k downloads 204 mentions 60 exports 1 dependencies

Last updated 2 months agofrom:5e409c687f. Checks:OK: 7 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 27 2024
R-4.5-win-x86_64NOTENov 27 2024
R-4.5-linux-x86_64NOTENov 27 2024
R-4.4-win-x86_64OKNov 27 2024
R-4.4-mac-x86_64OKNov 27 2024
R-4.4-mac-aarch64OKNov 27 2024
R-4.3-win-x86_64OKNov 27 2024
R-4.3-mac-x86_64OKNov 27 2024
R-4.3-mac-aarch64OKNov 27 2024

Exports:snpgdsAdmixPlotsnpgdsAdmixPropsnpgdsAdmixTablesnpgdsAlleleSwitchsnpgdsApartSelectionsnpgdsBED2GDSsnpgdsClosesnpgdsCombineGenosnpgdsCreateGenosnpgdsCreateGenoSetsnpgdsCutTreesnpgdsDisssnpgdsDrawTreesnpgdsEIGMIXsnpgdsErrMsgsnpgdsExampleFileNamesnpgdsFstsnpgdsGDS2BEDsnpgdsGDS2EigensnpgdsGDS2PEDsnpgdsGEN2GDSsnpgdsGetGenosnpgdsGRMsnpgdsHClustersnpgdsHWEsnpgdsIBDKINGsnpgdsIBDMLEsnpgdsIBDMLELogLiksnpgdsIBDMoMsnpgdsIBDSelectionsnpgdsIBSsnpgdsIBSNumsnpgdsIndInbsnpgdsIndInbCoefsnpgdsIndivBetasnpgdsIndivBetaRelsnpgdsLDMatsnpgdsLDpairsnpgdsLDpruningsnpgdsMergeGRMsnpgdsOpensnpgdsOptionsnpgdsPairIBDsnpgdsPairIBDMLELogLiksnpgdsPairScoresnpgdsPCAsnpgdsPCACorrsnpgdsPCASampLoadingsnpgdsPCASNPLoadingsnpgdsPED2GDSsnpgdsSampMissRatesnpgdsSelectSNPsnpgdsSlidingWindowsnpgdsSNPListsnpgdsSNPListIntersectsnpgdsSNPRateFreqsnpgdsSummarysnpgdsTransposesnpgdsVCF2GDSsnpgdsVCF2GDS_R

Dependencies:gdsfmt

Tutorials for the R/Bioconductor Package SNPRelate

Rendered fromSNPRelate.Rmdusingknitr::rmarkdownon Nov 27 2024.

Last update: 2022-07-15
Started: 2019-10-14

Readme and manuals

Help Manual

Help pageTopics
Parallel Computing Toolset for Genome-Wide Association StudiesSNPRelate-package SNPRelate
SNP genotypes of HapMap sampleshapmap_geno
Plot Ancestry ProportionssnpgdsAdmixPlot snpgdsAdmixTable
Estimate ancestral proportions from the eigen-analysissnpgdsAdmixProp
Allele-switchingsnpgdsAlleleSwitch
Select SNPs with a basepair distancesnpgdsApartSelection
Conversion from PLINK BED to GDSsnpgdsBED2GDS
Close the SNP GDS FilesnpgdsClose
Merge SNP datasetssnpgdsCombineGeno
Create a SNP genotype dataset from a matrixsnpgdsCreateGeno
Create a SNP genotype dataset from a GDS filesnpgdsCreateGenoSet
Determine clusters of individualssnpgdsCutTree
Individual dissimilarity analysissnpgdsDiss
Draw a dendrogramsnpgdsDrawTree
Eigen-analysis on SNP genotype dataplot.snpgdsEigMixClass snpgdsEIGMIX
Get the last error informationsnpgdsErrMsg
Example GDS filesnpgdsExampleFileName
SNPGDSFileClassSNPGDSFileClass SNPGDSFileClass-class
F-statistics (fixation indices)snpgdsFst
Conversion from GDS to PLINK BEDsnpgdsGDS2BED
Conversion from GDS to Eigen (EIGENSTRAT)snpgdsGDS2Eigen
Conversion from GDS to PEDsnpgdsGDS2PED
Conversion from Oxford GEN format to GDSsnpgdsGEN2GDS
To get a genotype matrixsnpgdsGetGeno
Genetic Relationship Matrix (GRM) for SNP genotype datasnpgdsGRM
Hierarchical cluster analysissnpgdsHCluster
Statistical test of Hardy-Weinberg EquilibriumsnpgdsHWE
KING method of moment for the identity-by-descent (IBD) analysissnpgdsIBDKING
Maximum likelihood estimation (MLE) for the Identity-By-Descent (IBD) AnalysissnpgdsIBDMLE
Log likelihood for MLE method in the Identity-By-Descent (IBD) AnalysissnpgdsIBDMLELogLik
PLINK method of moment (MoM) for the Identity-By-Descent (IBD) AnalysissnpgdsIBDMoM
Get a table of IBD coefficientssnpgdsIBDSelection
Identity-By-State (IBS) proportionsnpgdsIBS
Identity-By-State (IBS)snpgdsIBSNum
Individual Inbreeding CoefficientssnpgdsIndInb
Individual Inbreeding CoefficientsnpgdsIndInbCoef
Individual inbreeding and relatedness estimation (beta estimator)snpgdsIndivBeta snpgdsIndivBetaRel
Linkage Disequilibrium (LD) analysissnpgdsLDMat
Linkage Disequilibrium (LD)snpgdsLDpair
Linkage Disequilibrium (LD) based SNP pruningsnpgdsLDpruning
Merge Multiple Genetic Relationship Matrices (GRM)snpgdsMergeGRM
Open a SNP GDS FilesnpgdsOpen
Option settings: chromosome coding, etcsnpgdsOption
Calculate Identity-By-Descent (IBD) CoefficientssnpgdsPairIBD
Log likelihood for MLE method in the Identity-By-Descent (IBD) AnalysissnpgdsPairIBDMLELogLik
Genotype Score for Pairs of IndividualssnpgdsPairScore
Principal Component Analysis (PCA) on SNP genotype dataplot.snpgdsPCAClass snpgdsPCA
PC-correlated SNPs in principal component analysissnpgdsPCACorr
Project individuals onto existing principal component axessnpgdsPCASampLoading
SNP loadings in principal component analysissnpgdsPCASNPLoading
Conversion from PLINK PED to GDSsnpgdsPED2GDS
Missing Rate of SamplessnpgdsSampMissRate
SNP selectionsnpgdsSelectSNP
Sliding windowsnpgdsSlidingWindow
Create a SNP list objectsnpgdsSNPList
the class of a SNP listsnpgdsSNPListClass
Get a common SNP list between/among SNP list objectssnpgdsSNPListIntersect
Allele Frequency, Minor Allele Frequency, Missing Rate of SNPssnpgdsSNPRateFreq
Summary of GDS genotype filesnpgdsSummary
Transpose genotypic matrixsnpgdsTranspose
Reformat VCF file(s)snpgdsVCF2GDS
Reformat a VCF file (R implementation)snpgdsVCF2GDS_R