AminoAcidSequence constructor

AminoAcidSequence(
  1. NucleotideSequence seq, {
  2. String? id,
  3. String? description,
  4. Map<String, dynamic>? info,
  5. Map<String, AminoAcidInfo>? aminoAcidInfo,
})
  • seq : The mRNA sequence.
  • id : This sequence id.
  • direction : sequence direction. 5'to3' or 3'to5' for mRNA sequence. This value is reversed for complemented objects.
  • description : The description of this sequence.
  • info : Other information of this sequence.
  • aminoAcidInfo : Reference for information by AminoAcid.

Implementation

AminoAcidSequence(NucleotideSequence seq,
    {this.id, this.description, this.info, this.aminoAcidInfo}) {
  sequence = UtilAminoAcid.convertFromNucleotide(seq);
  if (seq.direction == EnumNucleotideSequenceDirection.fiveToThree) {
    direction = EnumAminoAcidSequenceDirection.nToC;
  } else {
    direction = EnumAminoAcidSequenceDirection.cToN;
  }
}