Convert bioseq DNA, RNA and AA to tibble

as_tibble.bioseq_dna(x, label = "label", sequence = "sequence", ...)

as_tibble.bioseq_rna(x, label = "label", sequence = "sequence", ...)

as_tibble.bioseq_aa(x, label = "label", sequence = "sequence", ...)

Arguments

x

a DNA, RNA or AA vector.

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

Examples


require(tibble)
x <- dna(A = "ACGTTAGTGTAGCCGT", B = "CTCGAAATGA", C = NA)
as_tibble(x)
#> # A tibble: 3 × 1
#>   value           
#>   <DNA>           
#> 1 ACGTTAGTGTAGCCGT
#> 2 CTCGAAATGA      
#> 3 NA