pratio: Calculation of Psi(psi)

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/pratio.R

Description

Psi is also called polar ratio.

ψ = max(\frac{min(X_A)}{max(X_B)+1},\frac{min(X_B)}{max(X_A)+1})

.

Usage

1
pratio(xx, na, nb)

Arguments

xx

count data of RNA reads generated by next generation sequencing.

na

number of replicate libraries in condition A.

nb

number of replicate libraries in condition B.

Details

Psi is defined as

ψ = max(\frac{min(X_A)}{max(X_B)+1},\frac{min(X_B)}{max(X_A)+1})

It is used to measure overlap of two subdatasets. ψ>1, these two subdatasets have a gap, not overlap. ψ<1 indicates that two subdatasets overlap.

Value

pratio

pratio list

Author(s)

Yuan-De Tan tanyuande@gmail.com

References

Yuan-De Tan Anita M. Chandler, Arindam Chaudhury, and Joel R. Neilson(2015) A Powerful Statistical Approach for Large-scale Differential Transcription Analysis. Plos One. 2015 DOI: 10.1371/journal.pone.0123658.

See Also

mbetattest, oddratio

Examples

1
2
3
4
5
6
7
8
XX<-matrix(NA,2,8)
XX[1,]<-c(112,122, 108,127,302, 314, 322, 328)
XX[2,]<-c(511, 230, 754, 335,771, 842, 1014,798)
#XX
#     [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
#[1,]  112  122  108  127  302  314  322  328
#[2,]  511  230  754  335  771  842 1014  798
pratio(xx=XX,na=4,nb=4)

MBttest documentation built on Nov. 8, 2020, 4:57 p.m.