Learn R Programming

⚠️There's a newer version (1.1.6) of this package.Take me there.

qgg

An R package for Quantitative Genetic and Genomic analyses

qgg provides an infrastructure for efficient processing of large-scale genetic and phenotypic data including core functions for: * fitting linear mixed models * constructing marker-based genomic relationship matrices * estimating genetic parameters (heritability and correlation) * performing genomic prediction and genetic risk profiling * single or multi-marker association analyses

The qgg package was developed based on the hypothesis that certain regions on the genome, so-called genomic features, may be enriched for causal variants affecting the trait. Several genomic feature classes can be formed based on previous studies and different sources of information including genes, chromosomes, biological pathways, gene ontologies, sequence annotation, prior QTL regions, or other types of external evidence.

The qgg package provides a range of genomic feature modeling approaches implemented using likelihood or Bayesian methods. Genomic feature best linear unbiased prediction (GFBLUP) models can be fitted. We have extended these models to include multiple features and multiple traits. Different genetic models (e.g. additive, dominance, gene by gene and gene by environment interactions) can be used. Further extensions include a weighted GFBLUP model using differential weighting of the individual genetic marker relationships. Furthermore we have implemented a number of marker set tests. These approaches are computationally very fast allowing rapid analyses of different layers of genomic feature classes to discover genomic features potentially enriched for causal variants. Such information can be used to built more accurate prediction models.

Copy Link

Version

Install

install.packages('qgg')

Monthly Downloads

274

Version

1.1.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Peter Soerensen

Last Published

September 7th, 2023

Functions in qgg (1.1.2)

getMarkers

Retrieve marker rsids in a specified genome region.
getG

Get elements from genotype matrix stored in PLINK bedfiles
getPos

Retrieve the positions for specified rsids on a given chromosome.
getMap

Retrieve the map for specified rsids on a given chromosome.
getGRM

Extract elements from genomic relationship matrix (GRM) stored on disk
getLD

Retrieve Sparse LD Matrix for a Given Chromosome
getLDsets

Get marker LD sets
getSparseLD

Extract Sparse Linkage Disequilibrium (LD) Information
glma

Single marker association analysis using linear models or linear mixed models
gfilter

Filter genetic marker data based on different quality measures
greml

Genomic rescticted maximum likelihood (GREML) analysis
gsim

Genomic simulation
gmap

Finemapping using Bayesian Linear Regression Models
grm

Computing the genomic relationship matrix (GRM)
gscore

Genomic scoring based on single marker summary statistics
gsea

Gene set enrichment analysis
ldsc

LD score regression
hwe

Perform Hardy Weinberg Equilibrium Test
gsolve

Solve linear mixed model equations
mtadj

Adjustment of marker effects using correlated trait information
plotBayes

Plot fit from gbayes
ldscore

Compute LD (Linkage Disequilibrium) Scores for a Given Chromosome.
plotROC

Plot Receiver Operating Curves
gprep

Prepare genotype data for all statistical analyses
predict_auc_mt_cc

Expected AUC for prediction of a binary trait using information on correlated binary trait
predict_r2_mt

Expected R2 for multiple trait prediction of continuous traits
predict_r2_st

Expected R2 for single trait prediction of a continuous trait
mapSets

Map Sets to RSIDs
predict_auc_st

Expected AUC for prediction of a binary trait
predict_auc_mt_continuous

Expected AUC for prediction of a binary trait using information on a correlated continuous trait
mapStat

Map marker summary statistics to Glist
mergeGRM

Merge multiple GRMlist objects
qcStat

Quality Control of Marker Summary Statistics
rnag

Compute Nagelkerke R2
splitWithOverlap

Split Vector with Overlapping Segments
plotLD

Plot LD Matrix
plotForest

Forest plot
adjLD

LD pruning of summary statistics
adjStat

Adjustment of marker summary statistics using clumping and thresholding
acc

Compute prediction accuracy for a quantitative or binary trait
gbayes

Bayesian linear regression models
gblup

Compute Genomic BLUP values
adjLDStat

Check concordance between marker effect and sparse LD matrix.
adjustMapLD

Adjust Linkage Disequilibrium (LD) Using Map Information
auc

Compute AUC
computeROC

Compute Receiver Operating Curve statistics
adjustB

Adjust B-values