PermuCut: Define sine scroe cutoff using permuted data

Description Usage Arguments Value Author(s) Examples

View source: R/PermuCut.R

Description

Define sine scroe cutoff using permuted data

Usage

1
PermuCut(Data, NumPermu=1000)

Arguments

Data

a gene-by-sample (isoform-by-sample) matrix indicating the rescaled expression of genes/isoforms. all values should be between [-1, 1].

NumPermu

number of permuted genes to generate.

Value

Output contains a vector of numbers. Each number presents max sine score of a given permuted gene.

Author(s)

Ning Leng

Examples

1
2
3
4
5
6
7
aa <- sin(seq(0,1,.1))
bb <- sin(seq(0.5,1.5,.1))
cc <- sin(seq(0.9,1.9,.1))
tmp <- matrix(sin(rnorm(330)),ncol=11)
rownames(tmp) <- paste0("tmp",1:30)
Dat <- rbind(aa, bb, cc, tmp)
res1 <- PermuCut(Dat,100)

Oscope documentation built on Nov. 8, 2020, 7:12 p.m.