Skip to contents

This function takes a list of sequences and writes them to a FASTA file. The name of the list is used as the base name for the output file with the .fasta extension. Each sequence in the list is written to the output file in FASTA format with the sequence name as the header.

Usage

write.list_to_fasta(sequence_list)

Arguments

sequence_list

A list of sequences where each element of the list is a character string representing a single sequence.

Examples

sequences <- list("ACGT", "ATCG")
write.list_to_fasta(sequences)
#> List sequences written to FASTA file sequences.fasta