read_stockholm_msa: Parse a Multiple Alignment in Stockholm Format

View source: R/read_stockholm_msa.R

read_stockholm_msaR Documentation

Parse a Multiple Alignment in Stockholm Format

Description

Parses Stockholm-format multiple alignment files, including "⁠#=GC⁠" lines. Other annotations are ignored.

Usage

read_stockholm_msa(stockholm, type = c("RNA", "DNA", "AA"))

Arguments

stockholm

(character scalar) Path to a file to parse

type

(character scalar) Type of alignment; "RNA", "DNA", or "AA".

Value

a StockholmMultipleAlignment

Examples

    msafile <- sample_rRNA_stk()
    msa <- read_stockholm_msa(msafile)
    msa

brendanf/inferrnal documentation built on Sept. 30, 2024, 6:40 a.m.