AminoAcidSequence constructor
AminoAcidSequence(
- NucleotideSequence seq, {
- String? id,
- String? description,
- Map<
String, dynamic> ? info, - 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;
}
}