NucleotideSequence constructor
NucleotideSequence(
- String seq, {
- EnumNucleotideSequenceType type = EnumNucleotideSequenceType.dna,
- String? id,
- EnumNucleotideSequenceDirection direction = EnumNucleotideSequenceDirection.fiveToThree,
- String? description,
- Map<
String, dynamic> ? info, - 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)));
}
}