Skip to contents

Exports getSequence results to FASTA format

Usage

exportFASTA(sequences, file)

Arguments

sequences

A data.frame that was the output of the getSequence() function

file

File to which you want to write the data

Author

Steffen Durinck

Hugo Gruson

Examples

if (FALSE) { # interactive()
mart <- useMart("ENSEMBL_MART_ENSEMBL", dataset = "hsapiens_gene_ensembl")

seq <- getSequence(
  id = "BRCA1",
  type = "hgnc_symbol",
  seqType = "cdna",
  mart = mart
)
exportFASTA(seq, file = "test.fasta")
}