Description Usage Arguments Value Examples
View source: R/selectBestAndMean.R
From all sequences of a generation report highest HZEI integral and mean HZEI integral of all.
1 | selectBestAndMean(sequenceVector, clusterName, increaseHZEI=TRUE)
|
sequenceVector |
Character vector of nucleotide sequences |
clusterName |
Name of cluster generated with package parallel |
increaseHZEI |
Logical value if HZEI integral should be increased or decreased during SD degradation. If TRUE, function aims to increase HZEI integral. |
Numeric vector of length 2 stating the best HZEI integral and the mean HZEI integral of a nucleotide sequence vector sequenceVector
. Depending on the increaseHZEI
mode, the best HZEI integral value is either the highest (for increaseHZEI
==TRUE) or lowest (for increaseHZEI
==FALSE).
1 2 3 4 5 6 7 8 | ## Setup cluster
library(parallel)
nCores <- 1
clust <- makeCluster(nCores)
clusterExport(clust, list('getOverlappingVectorsFromVector', 'hex',
'calculateHZEIint'), envir = environment())
selectBestAndMean(c('CGCGATACGCTAAGCGCTACCGATAGTGGA','TGGGATATTTTAAGCGCTGACGATAGTGGA'),
clust, increaseHZEI=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.