Giter Club home page Giter Club logo

hpqtl's Introduction

HPQTL

HPQTL is R package for quantitative trait locus (QTL) analysis in case of highly polygenic genetic backgound.

To calculate LOD scores, the user need to specify the following

  • phenotype (variable of interest + covariates)
  • genotype (3-dim array of probabilities: subjects x calls x markers)
  • genetic similarity matrix (can be calculated from genotype)

Three methods have been implemented

  • linear model (LM)
  • linear mixed model (LMM)
  • linear mixed model with specific genetic similarity matrix for each chromosome (LMM-L1O)

Example

library(HPQTL)
data(fake.f2, package="qtl")

# calculate and extract genotype probabilities
fake.f2 <- qtl::calc.genoprob(fake.f2)
geno <- extract.geno(fake.f2)

# calculate genetic similarity matrix
G <- gensim.matrix(geno)

# mapping with linear model
qtl::scanone(fake.f2, method = "hk")
(fit.lm <- scan1(geno=geno, fake.f2$pheno))

# mapping with linear mixed model
fit.lmm <- scan1(geno=geno, fake.f2$pheno, procedure = "LMM", G=G)

# mapping with linear mixed model - leave the scanned chromosome out
fit.lmm_loco <- scan1(geno=geno, fake.f2$pheno, procedure = "LOCO")

# LOD plots
plot(fit.lm, col="black", incl.markers=FALSE)
plot(fit.lmm, add=TRUE, col="red")
plot(fit.lmm_loco, add=TRUE, col="blue")
legend("topleft", c("LM", "LMM", "LOCO"), lty=1, col=c("black", "red", "blue"))

Installation

To install the package directly from Github, use devtools::install_github:

    library(devtools)
    install_github("simecek/HPQTL")

See also

hpqtl's People

Contributors

simecek avatar

Watchers

James Cloos avatar  avatar

hpqtl's Issues

Chr X issue

Various chrX issues including:

  • import qtl object
  • do scaning with interaction to sex
  • calculate threshold separately

Variance decomposition package

Current version uses regress and QTLRel to fit mixed model with kinship. Try kinship, kinship2 or lme4 packages instead.

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.