plot_simulation_sample {BioTIP}R Documentation

calculating Ic scores based on simulated samples

Description

simulate x samples B times to calculate the Ic score, where x should be the same as the length of identified BioTiP and B is self-defined.

Usage

plot_simulation_sample(counts, sampleNo, Ic, genes, B = 1000,
  main = "simulation of samples")

Arguments

counts

A numeric matrix or data frame. The rows and columns represent unique transcript IDs (geneID) and sample names, respectively.

sampleNo

An integer of sample size of the tipping point

Ic

A numeric value. Ic score of identified BioTiP

genes

A character vector of identified BioTiP unique ids

B

An integer indicating number of times to run this simulation, default 1000.

main

A character vector. The title of the plot. Defualt is NULL.

Value

Return a density plot of simulated Ic score with p-value

Author(s)

Zhezhen Wang zhezhen@uchicago.edu

Examples

counts = matrix(sample(1:100,27),3,9)
colnames(counts) = 1:9
row.names(counts) = c('loci1','loci2','loci3')
BioTiP = c('loci1','loci2')
plot_simulation_sample(counts,3,3.4,BioTiP,B=3)

[Package BioTIP version 1.0.0 Index]