Learn R Programming

bioseq (version 0.1.4)

seq_disambiguate_IUPAC: Disambiguate biological sequences

Description

This function finds all the combinations of sequences corresponding to a given vector of sequences with ambiguities (IUPAC codes).

Usage

seq_disambiguate_IUPAC(x)

Value

A list of DNA, RNA or AA vectors (depending on the input) giving all possible combinations.

Arguments

x

a DNA, RNA or AA vector

See Also

Other op-misc: seq_nchar(), seq_nseq(), seq_spellout(), seq_stat_gc(), seq_stat_prop()

Examples

Run this code

x <- dna(c("AYCTGW", "CTTN"))
seq_disambiguate_IUPAC(x)

y <- seq_transcribe(x)
seq_disambiguate_IUPAC(y)

z <- aa("YJSNAALNX")
z <- seq_translate(y)
seq_disambiguate_IUPAC(z)

Run the code above in your browser using DataLab