genTestdata: Create test dataset for the ClusterExons function

Description Usage Arguments Value Examples

View source: R/gen_testdata.R

Description

This function creates a sample test dataset for the ClusterExons function. At the moment it the same number of exons per each gene. Expression is sampled from a random binomial distribution.

Usage

1
genTestdata(nGenes, nExons, nSamples)

Arguments

nGenes

An integer, specifies the number of genes in the dataset.

nExons

An integer, specifies the number of exons in each gene.

nSamples

An integer, specifies the number of samples in the dataset.

Value

A data.frame with nGenes*nExons rows and 2+nSamples columns. The first 2 columns contain gene and exon ID. Further columns contain log2 transformed expression scores.

Examples

1
2
3
4
# Create a dataset with 10 genes composed by 3 exons, measured across 5 samples
genTestdata(10,3,5)

 @export

alfredorago/FESTA documentation built on May 24, 2019, 9:50 a.m.