tidy_msa: tidy_msa

View source: R/msa_data.R

tidy_msaR Documentation

tidy_msa

Description

Convert msa file/object to tidy data frame.

Usage

tidy_msa(msa, start = NULL, end = NULL)

Arguments

msa

multiple sequence alignment file or sequence object in DNAStringSet, RNAStringSet, AAStringSet, BStringSet, DNAMultipleAlignment, RNAMultipleAlignment, AAMultipleAlignment, DNAbin or AAbin

start

start position to extract subset of alignment

end

end position to extract subset of alignemnt

Value

tibble data frame

Author(s)

Guangchuang Yu

Examples

fasta <- system.file("extdata", "sample.fasta", package = "ggmsa")
aln <- tidy_msa(msa = fasta, start = 10, end = 100)

YuLab-SMU/ggmsa documentation built on Aug. 26, 2022, 1:48 a.m.