Learn R Programming

bioseq (version 0.1.4)

as-tibble-bioseq: Convert bioseq DNA, RNA and AA to tibble

Description

Convert bioseq DNA, RNA and AA to tibble

Usage

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", ...)

Value

A tibble with two columns (if name is not NULL, the default) or one column (otherwise).

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.

See Also

Other conversions: as-tibble-ape, as_AAbin(), as_DNAbin(), as_aa(), as_dna(), as_rna(), as_seqinr_alignment()

Examples

Run this code

require(tibble)
x <- dna(A = "ACGTTAGTGTAGCCGT", B = "CTCGAAATGA", C = NA)
as_tibble(x)


Run the code above in your browser using DataLab