write static method
(en) Convert from NucleotideSequence to FASTA file.
(ja) NucleotideSequenceからFASTAファイルに変換します。
seq
: NucleotideSequence class.description
: FASTA header description.
Implementation
static String write(NucleotideSequence seq, String description) {
StringBuffer r = StringBuffer();
r.write('>$description\n');
r.write("${seq.toStr().toUpperCase()}\n");
return r.toString();
}