seq_disambiguate_IUPAC: Disambiguate biological sequences

View source: R/seq_misc_operations.R

seq_disambiguate_IUPACR Documentation

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)

Arguments

x

a DNA, RNA or AA vector

Value

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

See Also

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

Examples


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)


bioseq documentation built on Sept. 6, 2022, 5:07 p.m.