as-tibble-ape {bioseq} | R Documentation |
Convert DNAbin/AAbin to tibble
Description
These methods convert sequences from ape formats DNAbin and AAbin to tibbles.
Usage
as_tibble.DNAbin(x, label = "label", sequence = "sequence", ...)
as_tibble.AAbin(x, label = "label", sequence = "sequence", ...)
Arguments
x |
a DNAbin or AAbin object. |
label |
Name of the column that stores the sequence labels in the returned tibble. |
sequence |
Name of the column that stores the sequences in the returned tibble. |
... |
Not used. |
Value
A tibble with two columns (if name is not NULL, the default) or one column (otherwise).
See Also
Other conversions:
as-tibble-bioseq
,
as_AAbin()
,
as_DNAbin()
,
as_aa()
,
as_dna()
,
as_rna()
,
as_seqinr_alignment()
Examples
require(ape)
require(tibble)
x <- rDNAbin(nrow = 10, ncol = 25)
as_tibble.DNAbin(x)
[Package bioseq version 0.1.4 Index]