rqt-phenotype: This function performs an access to phenotype

Description Usage Arguments Value Examples

Description

This function performs an access to phenotype

A phenotype accessor

Usage

1
2
3
4
phenotype(obj)

## S4 method for signature 'rqt'
phenotype(obj)

Arguments

obj

An object of rqt class.

Value

phenotype returns the phenotype

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)
phenotype(obj)

izhbannikov/rqt documentation built on May 18, 2019, 7:14 a.m.