exportFA: Exporting a Fasta File.

Description Usage Arguments Details Value Author(s) Examples

View source: R/exportFA.R

Description

This function exports a standard fasta file.

Usage

1

Arguments

fa

fasta object

file

Character, specifies filename/path

Details

This function exports a fasta object to a standard fasta file. If no file name is given, the variable name will be used instead.

Value

A fasta file

Author(s)

Daniel Fischer

Examples

1
2
3
4
5
6
7
8
9
 # Define here the location on HDD for the example file
   fpath <- system.file("extdata","example.fasta", package="GenomicTools.fileHandler")
 # Import the example fasta file  
   fastaFile <- importFA(file=fpath)
   newFasta <- fastaFile[1:5]
   
myfile <- file.path(tempdir(), "myLocs.fa")
   
  exportFA(newFasta, file=myfile)

GenomicTools.fileHandler documentation built on March 26, 2020, 7:23 p.m.