NucleotideSequence class
Constructors
-
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. -
NucleotideSequence.fromSeq(List<
Nucleotide> sequence, {EnumNucleotideSequenceType type = EnumNucleotideSequenceType.dna, String? id, EnumNucleotideSequenceDirection direction = EnumNucleotideSequenceDirection.fiveToThree, String? description, Map<String, dynamic> ? info, Map<String, NucleotideInfo> ? nucleotideInfo}) - Generate from sequence data.
Properties
- description ↔ String?
-
getter/setter pair
- direction ↔ EnumNucleotideSequenceDirection
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
getter/setter pair
-
info
↔ Map<
String, dynamic> ? -
getter/setter pair
-
nucleotideInfo
↔ Map<
String, NucleotideInfo> ? -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sequence
↔ List<
Nucleotide> -
getter/setter pair
- type ↔ EnumNucleotideSequenceType
-
getter/setter pair
Methods
-
add(
NucleotideSequence seq, {bool useDirection = true}) → void - (en) Combines this NucleotideSequence with another NucleotideSequence.
-
complemented(
EnumNucleotideSequenceType type) → NucleotideSequence - (en) Get the complementary sequence. Also, nucleotideInfo is returned as empty.
-
converted(
EnumNucleotideSequenceType type) → NucleotideSequence - (en) Gets a new array whose type has been converted. Orientation does not change. Also, nucleotideInfo is returned as empty.
-
deepCopy(
) → NucleotideSequence - deep copy.
-
length(
) → int - Return sequence length.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reverse(
) → void - (en) Reverses the order of bases in this Sequence.
-
reversed(
) → NucleotideSequence - (en) Gets a new reversed Sequence.
-
subSeq(
int startIndex, [int? endIndex]) → NucleotideSequence - (en) Get a partial sequence. Data other than seq are copied.
-
subSeqNonInfo(
int startIndex, [int? endIndex]) → NucleotideSequence - (en) Get a partial sequence. Data other than seq are not copied. Use this when speed is a priority.(e.g. UtilCompareNucleotide.compareBase) return info and nucleotideInfo will be null.
-
toDict(
) → Map< String, dynamic> - to map.
-
toStr(
) → String - (en) It converts to a character string with only the base sequence(lowercase letter) and returns it. Direction is not considered.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator +(
NucleotideSequence seq) → NucleotideSequence -
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromDict(
Map< String, dynamic> src) → NucleotideSequence - resume map.