Learn R Programming

Oscope (version 1.2.0)

PermuCut: Define sine scroe cutoff using permuted data

Description

Define sine scroe cutoff using permuted data

Usage

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab