eqtlClassifier: Classifying the eQTLs

Description Usage Arguments Value Examples

View source: R/eqtlClassifier.R

Description

It is customary to distinguish two kinds of eQTLs: 1) cis-eQTLs (where the eQTL is on the same locus as the expressed gene); and 2) trans-eQTLs (where the eQTL is on a locus other than that of the expressed gene). The eqtlClassifier allows us to classify the eQTLs as either cis-eQTL or trans-eQTL according to their position in the genome.

Usage

1
eqtlClassifier(peak, posSNP, posGENE, max)

Arguments

peak

A data.frame of significant eQTLs (the output of the findEqtl function)

posSNP

A data frame specifying the genomic locations of genomic markers (i.e. SNPs).

posGENE

A data frame specifying the genomic locations of the genes (or probes).

max

A cutoff value (in base pair) corresponding to the threshold where a eQTL is considered to be cis-eQTL. A numerical value.

Value

The output of the eqtlClassifier is a data frame where the first column contains the names of each gene, the second column contains the names of markers and the third column contains the PPA value for each significant eQTL. The fourth column contains the number of the chromosome to which the gene belongs, the fifth column contains the start position of the gene and the sixth column contains the end position of the gene. The seventh column contains the number of the chromosome to which the marker belongs, the eighth column contains position of the marker and the ninth column contains a descriptor of the type of eQTL (either cis or trans). Please note that in order to ascertain that an eQTL is either cis or trans, the positions of the markers and the gene need to the given to the function. If one of the values is missing the type of eQTL will be "NA".

Examples

1
2
3
4
5
6
data(PPA.liver)
cutoff.liver <- calculateThreshold(PPA.liver, 0.2)
eqtl.liver <- eqtlFinder(PPA.liver, cutoff.liver)
data(map.liver)
data(probe.liver)
eqtl.type.liver <- eqtlClassifier(eqtl.liver, map.liver, probe.liver,5000000)

iBMQ documentation built on Nov. 8, 2020, 11:04 p.m.