View source: R/Sliding.Window.R
Sliding.Window | R Documentation |
Creates a sliding window analysis plot for the VLFs in a matrix of sequences.
Sliding.Window(VLF, seqlength, n = 30)
VLF |
A vector of VLFs per position across the barcocde. Can be a single vector of all VLFs per positions, or can be a matrix containing singleton and shared VLFs. |
seqlength |
Length of the barcode sequence. |
n |
The number of positions to average the window across (n = 30 by default). |
The argument VLF can be calculated using the function VLF.count.pos for all VLFs, or find.singles for singleton and shared VLFs.
A sliding window plot for the VLFs in each position of the barcode averaged over n.
Taryn B. T. Athey and Paul D. McNicholas
## Not run: data(birds)
species.names <- birds[,2]
specimen.Number <- nrow(birds)
rownames(birds) <- species.names
Nuc.count <- count.function(birds, specimen.Number, 648)
frequency.matrix <- ffrequency.matrix.function(Nuc.count, 648)
birdSpec.freq <- specimen.frequencies(frequency.matrix, birds, specimen.Number, species.names, 648)
Bird_position_VLFcount <- VLF.count.pos(birdSpec.freq, 0.001, 648)
Sliding.Window(Bird_position_VLFcount, 648)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.