powered by
slide_codon generates a data.table with start, center, and end columns for a sliding window analysis of codons.
slide_codon
slide_codon(seq, step = 1, before = 0, after = 0)
data.table with start, center, and end columns
DNAString, the sequence
integer, the step size
integer, the number of codons before the center of a window
integer, the number of codons after the center of a window
x <- Biostrings::DNAString('ATCTACATAGCTACGTAGCTCGATGCTAGCATGCATCGTACGATCGTCGATCGTAG') slide_codon(x, step = 3, before = 1, after = 1)
Run the code above in your browser using DataLab