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 Feb. 4, 2023, 4:49 p.m.