SangerRead-class-writeFastaSR: writeFastaSR

SangerRead-class-writeFastaSRR Documentation

writeFastaSR

Description

A SangerRead method which writes the sequence into Fasta files.

Usage

## S4 method for signature 'SangerRead'
writeFastaSR(
  object,
  outputDir = NULL,
  compress = FALSE,
  compression_level = NA
)

Arguments

object

A SangerRead S4 instance.

outputDir

The output directory of the generated FASTA file.

compress

Like for the save function in base R, must be TRUE or FALSE (the default), or a single string specifying whether writing to the file is to use compression. The only type of compression supported at the moment is "gzip". This parameter will be passed to writeXStringSet function in Biostrings package.

compression_level

This parameter will be passed to writeXStringSet function in Biostrings package.

Value

The output absolute path to the FASTA file.

Examples

data("sangerReadFData")
writeFastaSR(sangerReadFData)

roblanf/sangeranalyseR documentation built on April 15, 2024, 12:44 a.m.