aln2aastring: aln2aastring

Description Usage Arguments Value Author(s) See Also Examples

View source: R/aln2aastring.R

Description

This function converts a seqinr alignment into an AAStringSet.

Usage

1

Arguments

aln

seqinr alignment [mandatory]

Value

An object of class AAStringSet

Author(s)

Kristian K Ullrich

See Also

as.alignment AAStringSet

Examples

1
2
3
4
5
6
7
## define two cds sequences
cds1 <- Biostrings::DNAString("ATGCAACATTGC")
cds2 <- Biostrings::DNAString("ATG---CATTGC")
cds1.cds2.aln <- c(Biostrings::DNAStringSet(cds1),
    Biostrings::DNAStringSet(cds2))
#aastring2aln(cds2aa(cds1.cds2.aln))
cds1.cds2.aln |> cds2aa() |> aastring2aln() |> aln2aastring()

kullrich/distSTRING documentation built on Dec. 21, 2021, 8:42 a.m.