write static method

String write(
  1. NucleotideSequence seq,
  2. String description
)

(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();
}