evenlyScaleEnsemble: Evenly scale an ensemble of spectra such that their

Description Usage

View source: R/Yin-DFT-Distances-R.r

Description

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

Usage

1
evenlyScaleEnsemble(spectraList)

mathornton01/Genomic-DFT-Yin-R documentation built on Dec. 21, 2021, 2:52 p.m.