Description Usage Arguments Details Value Author(s) Examples
View source: R/estimateBACsizeFromVDV.R
Cluster the sizes of VDV read for different number of clusters
(use LongestDNA
rather than ReadLength
, see details).
For each clustering, obtain the median size for each cluster and take the largest one.
The estimated BAC size is the median of these larger medians
1 | estimateBACsizeFromVDV(vdvLength, nclust = 2:10, method = c("jenks", "pam"))
|
vdvLength |
integer vector of lengths of VDV reads |
nclust |
integer vector of numbers of clusters to use (default to 2:10) |
method |
character string indicating which method to use ("jenks" or "pam"). Default is "jenks" (faster) |
In order to use the result of this function with the FilterBACreads
function
you should input the "LongestDNA" values instead of the ReadLength values for VDV reads.
tibble
Pascal GP Martin
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.