Write to FASTA

Last updated: September 9, 2025

Input:

  • File path of output FASTA file, list of sequence IDs, list of sequences

Output:

  • Formatted download message

Description:

Allows a user to write their own sequences to a FASTA file. This is done using the SeqIO.write function from the BioPython library, which takes the sequences (once they’ve been converted into SeqRecord objects) and writes them to the FASTA file. FASTA files are text based formats used to store biological (nucelotide or amino acid) sequences like DNA, RNA, and proteins.