estimateSVSizes: Draw random structural variation sizes from a beta...

Description Usage Arguments Details Value Note Author(s) References Examples

Description

RSVSim can implement structural variations (SVs) of specific sizes. estimateSVSizes draws random values for SV sizes from a beta distribution. It can fit the distribution according to given SV sizes or default values.

Usage

1
estimateSVSizes(n, svSizes, minSize, maxSize, default, hist=TRUE)

Arguments

n

The number of SVs to simulate

svSizes

A numeric vector with SV sizes to calculate the parameters for the beta distribution

minSize

The minimum returned SV size

maxSize

The maximum returned SV size

hist

TRUE or FALSE to show a histogram of the SV sizes (or not)

default

Setting this to "deletions", "insertions", "inversions" or "tandemDuplications" loads default shape parameters for the beta distribution for these SV types (see details below)

Details

Value

A numeric vector with beta distributed values between minSize and maxSize.

Note

Author(s)

Christoph Bartenhagen

References

Database of Genomic Variants: http://dgvbeta.tcag.ca/dgv/app/home?ref=NCBI36/hg18

Examples

1
2
3
4
5
6
  ## estimate sizes for 20 SVs from a given set of values:
  svSizes = c(10,20,30,40,60,80,100,150,200,250,300,400,500,750,1000)
  estimateSVSizes(n=20, svSizes=svSizes, hist=FALSE) 

  ## when using the default shape parameters for deletions:
  estimateSVSizes(n=20, minSize=500, maxSize=10000, hist=FALSE, default="deletions")

RSVSim documentation built on Nov. 8, 2020, 5:35 p.m.