View source: R/Yin-DFT-Distances-R.r
This function will take an ensemble of genomic power spectra, and scale them all such that they are of a length equivalent to the maximum length of a sequence in the ensemble. @param spectraList A list containing the power spectra of genomic signals for sequences of interest. @return A list of scaled spectra all of which should be the same length. @examples tg <- c("ACCCAAGAGAGAGCCCCCGAGAGAGAGAGAGAGAGCCCCGAGAGAGCGAGACGAGAC","TAGAGCCGAGATAGAGCCGAGAGTTAGAC","CGGAGAGNNGGAGAGCCCGAGAGTTTGAGNN") eg <- encodeGenomes(tg); ps <- getPowerSpectraEnsemble(eg); sps <- evenlyScaleEnsemble(ps); @export
1 | evenlyScaleEnsemble(spectraList)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.