plot_simulation_sample {BioTIP} | R Documentation |
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.
plot_simulation_sample(counts, sampleNo, Ic, genes, B = 1000, main = "simulation of samples")
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. |
Return a density plot of simulated Ic score with p-value
Zhezhen Wang zhezhen@uchicago.edu
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)