Giter VIP home page Giter VIP logo

bglr-r's Introduction

BGLR: An R Package for (Bayesian) High-Dimensional Regression

CRAN status CRAN checks Downloads Downloads

The BGLR Package (Perez & de los Campos, 2014) implements a variety of shrinkage and variable selection regression procedures. In this repository we maintain the latest version beta version. The latest stable release can be downloaded from CRAN.

Citation

Please cite Perez & de los Campos, 2014 and Perez & de los Campos, 2022 for BGLR and Multitrait, respectively.

Installation

From CRAN (stable release).

  install.packages(pkg='BGLR',repos='https://cran.r-project.org/')

From GitHub (development version, added features).

   install.packages(pkg='devtools',repos='https://cran.r-project.org/')  #1# install devtools
   library(devtools)                                                     #2# load the library
   install_git('https://github.com/gdlc/BGLR-R')                         #3# install BGLR from GitHub

Note: when trying to install from github on a mac you may get the following error message

ld: library not found for -lgfortran

This can be fixed it by installing gfortan, for mac os you can use this

Useful references:

1. Single-Trait Models


Examples BGLR-function

Other Omics

Markers or Pedigree and Environmental Covariates

-Wheat (SNPs and env. covariates): Jarquin et al. (TAG, 2014)

-Cotton (Pedigree and env. covariates): Perez-Rodriguez et al.(Crop. Sci, 2015)

Image Data

-Maize (Image data): Aguate et al. (IBC, 2016)

2. Multi-trait models


The Multitrait function included in the BGLR package fits Bayesian multitrait models with arbitrary number of random effects using a Gibbs sampler. A functionality similar to this is implemented in the MTM package. In this implementation is possible to include regression on markers directly assigning Spike-slab or Gaussian priors for the regression coefficients and fixed effects can be different for all the traits. We also have improved the sampling routines to speed up computations. Next we include some examples.

Supplementary scripts for the draft of the paper "Multi-trait Bayesian Shrinkage and Variable Selection Models with the BGLR R-package"

bglr-r's People

Contributors

gdlc avatar perpdgo avatar agrueneberg avatar cruyffturn avatar dulcisflos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.