qtlhit {GSAQ} | R Documentation |
Computation of qtl-hit statistic for the selected gene set
Description
The function computes the statistic, i.e. number of qtl-hit genes in the selected gene set.
Usage
qtlhit(geneset, genelist, qtl)
Arguments
geneset |
geneset is a vector of characters representing the names of genes/ gene ids selected from the whole gene list by using a gene selection method. |
genelist |
genelist is a N by 3 dataframe/ matrix (genes/gene ids as row names); where, N represents the number of genes in the whole gene set: first coloumn represnting the chromosomal location of genes: second coloumn representing the start position of genes in terms of basepairs: third coloumn representing the end position of genes in terms of basepairs. |
qtl |
qtl is a Q by 3 dataframe/matrix (qtl names/qtl ids as row names);where, Q represents the number of qtls: first coloumn represnting the chromosomal location of qtls: second coloumn representing the start position of qtls in terms of basepairs: third coloumn representing the end position of qtls in terms of basepairs. |
Value
The function returns a numeric value of the statistic 'qtl-hit' representing the number of qtl-hits by the genes in the selected gene set.
Author(s)
Samarendra Das
Examples
data(rice_salt)
data(genelist)
data(qtl_salt)
x=as.data.frame(rice_salt[-1,])
y=as.numeric(rice_salt[1,])
geneset= GeneSelect(x, y, s=50, method="t-score")$selectgenes
genelist=as.data.frame(genelist)
qtl=as.data.frame(qtl_salt)
qtlhit(geneset, genelist, qtl)