subSeqNonInfo method

NucleotideSequence subSeqNonInfo(
  1. int startIndex, [
  2. int? endIndex
])

(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.

(ja) 部分的なシーケンスを取得します。seq以外のデータについてはコピーされません。 これは速度が優先される場合に利用します。(例: UtilCompareNucleotide.compareBase) 戻り値のinfoとnucleotideInfoはnullになります。

  • startIndex : Copy start index.
  • endIndex : Copy end index. Works the same as list.sublist.

Implementation

NucleotideSequence subSeqNonInfo(int startIndex, [int? endIndex]) {
  List<Nucleotide> copySeq = [];
  for (Nucleotide i in sequence.sublist(startIndex, endIndex)) {
    copySeq.add(i.deepCopy());
  }
  return NucleotideSequence.fromSeq(copySeq,
      type: type,
      id: id,
      direction: direction,
      description: description,
      info: null,
      nucleotideInfo: null);
}