write_fasta | R Documentation |
Write data to a fasta file.
write_fasta(df, path)
df |
The dataframe of sequence data to write to file. The dataframe must contain the columns: "header" and "sequence". Other columns in the dataframe are permitted but will be ignored. |
path |
Path or connection to write to. |
fasta_ex_dat = data.frame( header = c("seq1", "seq2", "seq3"), sequence = c("ATGC", "AATTGGCC", "TGACTGAC"), stringsAsFactors = FALSE ) data = write_fasta(fasta_ex_dat, "example_output.fasta")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.