import_MultipleAlignment: Import MultipleAlignment Result

View source: R/IO.R

import_MultipleAlignmentR Documentation

Import MultipleAlignment Result

Description

import sequences algned results

Usage

import_MultipleAlignment(filepath, format = "fasta", type = "DNA")

Arguments

filepath

A character vector (of arbitrary length when reading, of length 1 when writing) containing the paths to the files to read or write. Note that special values like "" or "|cmd" (typically supported by other I/O functions in R) are not supported here. Also filepath cannot be a connection.

format

Either "fasta" (the default), stockholm, or "clustal".

type

one of "DNA" and "Protein"

Value

object of DNAMultipleAlignment

Examples

aliSeqPath <- system.file("extdata", "seqs.fa", package = "geneHapR")

geneSeqs <- import_MultipleAlignment(filepath = aliSeqPath,
                                     format = "fasta",
                                     type = "DNA")
geneSeqs <- import_MultipleAlignment(filepath = aliSeqPath,
                                     format = "fasta",
                                     type = "Protein")


geneHapR documentation built on May 29, 2024, 11:59 a.m.