Learn R Programming

hoardeR (version 0.9.2)

exportFA: Exporting a Fasta File.

Description

This function exports a standard fasta file.

Usage

exportFA(fa, file=NULL)

Arguments

fa

An fa object.

file

Specifies the filename/path.

Value

A fasta file.

Details

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

See Also

print.fa, summary.fa, importFA

Examples

Run this code
# NOT RUN {
novelBed <- data.frame(Chr=c(11,18,3),
                         Start=c(72554673, 62550696, 18148822),
                         End=c(72555273, 62551296, 18149422),
                         Gene=c("LOC1", "LOC2", "LOC3"))

myFasta <- getFastaFromBed(novelBed, species="Bos taurus", 
+                          fastaFolder="/home/daniel/fasta/")

exportFA(myFasta, file="myFasta.fa")
# }

Run the code above in your browser using DataLab