import_seqs: Import Sequences

View source: R/IO.R

import_seqsR Documentation

Import Sequences

Description

import DNA sequences in FASTA format

Usage

import_seqs(filepath, format = "fasta")

Arguments

filepath

A character vector containing the path to the DNA sequences file. Reading files in gzip format (which usually have the '.gz' extension) is supported. Note that only DNA supported here.

format

Either "fasta" (the default) or "fastq"

Value

object of DNAStringSet class

Examples


seqPath <- system.file("extdata", "seqs.fa", package = "geneHapR")
geneSeqs <- import_seqs(filepath = seqPath, format = "fasta")


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