Learn R Programming

geneHapR (version 1.2.4)

import_seqs: Import Sequences

Description

import DNA sequences in FASTA format

Usage

import_seqs(filepath, format = "fasta")

Value

object of DNAStringSet class

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"

Examples

Run this code

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

Run the code above in your browser using DataLab