compareHits: Searching for common hits between different scoring methods

Description Usage Arguments Value See Also Examples

View source: R/stattest.R

Description

Searches for common hits between different scoring methods.

Usage

1
compareHits(hitVec1, hitVec2, namesHitVec1, namesHitVec2)

Arguments

hitVec1, hitVec2

the two binary hit vectors to be compared

namesHitVec1, namesHitVec2

the names of the siRNAs corresponding to the hit vectors

Value

Returns a character vector indicating which siRNAs are identified as hits in two different hit scoring schemes.

See Also

vennDiag , Ttest, MannWhitney

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
data(scoredDataset1, package="RNAither")
data(pValVec1, package="RNAither")

data(scoredDataset2, package="RNAither")
data(pValVec2, package="RNAither")

##for details on the generation of pValVec and scoredDataset,
##see the examples of the functions Ttest and MannWhitney linked above.

scoredHits1 <- hitselectionPval(scoredDataset1, pValVec1, "SigIntensity", "Hits1", 0.05, 
"GeneName", "pvalue_testfile1.txt")
scoredHits2 <- hitselectionPval(scoredDataset2, pValVec2, "SigIntensity", "Hits2", 0.05, 
"GeneName", "pvalue_testfile2.txt")

hitVector1 <- scoredHits1[[2]]
hitVector2 <- scoredHits2[[2]]

common_hits <- compareHits(hitVector1, hitVector2, names(hitVector1), names(hitVector2))

RNAither documentation built on Nov. 8, 2020, 8:06 p.m.