Description Usage Arguments Value Examples
Creates a character string or matrix of nucleotides (C, A, G, T), output to vector, matrix or Nexus file.
1 2 |
sampleID |
Vector of sample IDs to output. |
libr |
Library object from simulation functions. A list in which each entry represents a unique genotype, and is a vector of mutated nucleotide positions relative to the reference sequence. |
nuc |
Nucleotide database from simulation functions. A list (corresponding to |
ref.strain |
Reference strain to which the |
key |
Vector of sample IDs corresponding to the order of |
sampletime |
Vector of sample times. If specified, incorporates sample times into genome name in Nexus file. |
strings |
If |
filename |
File to which sequence data should be written. Output format is Nexus. Not written out if |
format |
File format to be exported (if |
A character vector or matrix, depending on strings
.
1 2 3 | data(withinhost)
G <- librtoDNA(sampleID=withinhost$obs.strain, libr=withinhost$libr, nuc=withinhost$nuc,
ref.strain=withinhost$ref.strain, key=withinhost$librstrains, strings=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.