
Export the contig consensus sequences in a Sequencher project as FASTA
spf_contigs_to_fasta.RdWrites one FASTA record per contig, named after the contig, holding its saved consensus sequence without gaps.
Details
The consensus is the one stored when the project was last saved, so it includes edits made up to then and none made later. Ambiguity codes are written as stored. The gapped consensus is not written, because each contig is gapped against its own alignment columns and the sequences do not form a shared alignment.
Examples
spf <- "project.SPF"
if (file.exists(spf)) spf_contigs_to_fasta(spf, tempfile(fileext = ".fasta"))