AminoAcidSequence.fromStr constructor

AminoAcidSequence.fromStr(
  1. String seq, {
  2. String? id,
  3. EnumAminoAcidSequenceDirection direction = EnumAminoAcidSequenceDirection.nToC,
  4. String? description,
  5. Map<String, dynamic>? info,
  6. Map<String, AminoAcidInfo>? aminoAcidInfo,
})

Generate from string data.

  • seq : The single-letter text for the amino acid. Only uppercase letters are allowed.
  • 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.fromStr(String seq,
    {this.id,
    this.direction = EnumAminoAcidSequenceDirection.nToC,
    this.description,
    this.info,
    this.aminoAcidInfo}) {
  sequence = UtilAminoAcid.convertFromStr(seq);
}