generateFakeClusters: Generate fake cluster data

Description Usage Arguments Value Author(s) Examples

View source: R/infinite.R

Description

Generate fake cluster data

Usage

1
2
generateFakeClusters(nCluster = 2, nPoints = 100, nIpd = 6, nBase = 3,
  nVariantBases = min(3, nBase), betweenSd = 3, withinSd = 1)

Arguments

nCluster

number of clusters

nPoints

number of points within each cluster

nIpd

number of IPDs to generate

nBase

number of bases to generate

nVariantBases

number of bases in each PWM varying from equal proportions

betweenSd

cluster centers are normally distributed around 0 with this standard deviation

withinSd

points are normally distributed around cluster centers with this standard deviation

Value

list with matrix giving point locations (rows are points, columns are dimensions), a matrix of cluster centers, a vector of sequences, a list of PWMs (rows are positions, columns are bases) and vector of cluster IDs

Author(s)

Scott Sherrill-Mix R@sherrillmix.com

Examples

1
2
3
clusts<-generateFakeClusters()
plot(clusts$ipds,col=clusts$ids)
points(clusts$centers,pch='x',col=1:nrow(clusts$centers),cex=2)

sherrillmix/infiniter documentation built on May 29, 2019, 9:24 p.m.