| cr_source.default | R Documentation |
Visualization of Two clones for their convergent recombination (CR) sources. Each sequence (NT) is represented as a colored bar (red for A, yellow for G, blue for T and green for C) linked to its translated amino acid sequence by a colored line, red for the first clone and blue for the second.
## Default S3 method: cr_source(clone1, clone2, ...)
clone1 |
First vector of sequences, string-length is the same for each nucleotide sequence ('A', 'G', 'T', 'C'). |
clone2 |
Second vector of sequences, same string-length as for the first vector. |
... |
Any other arguments. |
No return value.
nt <- c("A", "G", "C", "T")
seq_len <- 15
seq_n <- c(12, 7)
# Create data
c1 <- replicate(seq_n[1],
paste(sample(nt, seq_len, replace = TRUE), collapse = ''))
c2 <- replicate(seq_n[2],
paste(sample(nt, seq_len, replace = TRUE), collapse = ''))
cr_source(c1, c2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.