spairs: get stable pairs from normal samples

Description Usage Arguments Value Examples

View source: R/spairs.R

Description

the function is used to get stable gene pairs from a host of normal samples.

Usage

1
spairs(data1, gid1, threshold = 0.99)

Arguments

data1

a (normal sample) dataset which is used to screen the stable_pair.Notable that rownames is gene identifier(geneID/genesymbol/ensembleID).

gid1

a vector of gene indentifier which can completely match data1

threshold

a threshold value is used to stipulate that a gene pair maintain the circumstance of > the threshold so that the gene pair should be retained.The threshold should between 0-1, and the default is 0.99.

Value

a list which contains a dataframe of stable pair and a runtime

Examples

1
2
3
4
geneid<-1:10;
samples<-runif(100,min = 0,max = 50);
data1<-matrix(c(geneid,samples),nrow = 10,byrow=F);
stable_pairs<-spairs(data1 = data1,gid1=geneid,threshold = 0.99)

robert19960424/IndGOterm documentation built on Feb. 9, 2021, 8:37 a.m.