NucleotideSequence constructor

NucleotideSequence(
  1. String seq, {
  2. EnumNucleotideSequenceType type = EnumNucleotideSequenceType.dna,
  3. String? id,
  4. EnumNucleotideSequenceDirection direction = EnumNucleotideSequenceDirection.fiveToThree,
  5. String? description,
  6. Map<String, dynamic>? info,
  7. Map<String, NucleotideInfo>? nucleotideInfo,
})
  • seq : The base sequence. Only lowercase letters are allowed. Give the result of running toLowerCase() if it contains uppercase letters.
  • type : DNA or RNA.
  • id : This sequence id.
  • direction : sequence direction. 5'to3' or 3'to5'. This value is reversed for complemented objects.
  • description : The description of this sequence.
  • info : Other information of this sequence.
  • nucleotideInfo : Reference for information by nucleotide.

Implementation

NucleotideSequence(String seq,
    {this.type = EnumNucleotideSequenceType.dna,
    this.id,
    this.direction = EnumNucleotideSequenceDirection.fiveToThree,
    this.description,
    this.info,
    this.nucleotideInfo}) {
  for (String baseName in seq.split('')) {
    sequence.add(Nucleotide(EnumBase.values.byName(baseName)));
  }
}