seqSim | R Documentation |
recan is a R package which allows to construct genetic distance plots to explore and discover recombination events in viral genomes. This method has been previously implemented in desktop software tools: RAT, Simplot and RDP4. Single function calculates sequence similarity along the alignment in a narrow window with customized step and save in dataframe. This dataframe can be used for plots and further analysis.
seqSim(seq, ref = 1, shift = 50, window = 200, region = c(0, 0))
seq |
as input we use fasta object from bio3d package. It is a multiple alignment of three or more sequences. |
ref |
is a sequence which is used for sequences similarity calculation. |
shift |
the step our window slides downstream the alignment. It's value is set to 200 by default |
window |
sliding window size. The number of nucleotides the sliding window will span. It has the value of 50 by default. |
region |
we can slice the alignment by using this parameter. region must be a a vector with two integers: the start and the end position of the alignment slice. A sequence similarity plot will be built for specified region. |
seqSim(seq, ref = 2, shift = 100, window = 100, region = c(100, 3000)) seqSim_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.