rqt-methods: The rqt class constructor

Description Usage Arguments Value Examples

Description

This function generates rqt class objects

Usage

1
2

Arguments

phenotype

Phenotype (a vector of length N, where N - number of individuals).

genotype

Genotype - an object of class SummarizedExperiment. Should contain one assay (matrix, N by M where N - number of individuals, M - number of genetic variants).

covariates

Covariates, a data frame N by K where N - number of individuals, K - number of covariates

results

A list of two: test statistics: (Q1, Q2, Q3), p-values: (p1.Q1, p2.Q2, p3.Q3)

Value

Object of class rqt

Examples

1
2
3
4
5
6
7
8
data <- data.matrix(read.table(system.file("extdata/test.bin1.dat",
package="rqt"), header=TRUE))
pheno <- data[,1]
geno <- data[, 2:dim(data)[2]]
colnames(geno) <- paste(seq(1, dim(geno)[2]))
geno.obj <- SummarizedExperiment(geno)
obj <- rqt(phenotype=pheno, genotype=geno.obj)
print(obj)

rqt documentation built on Nov. 8, 2020, 4:50 p.m.