Skip to content

Series Pattern

Jess Davis edited this page Dec 15, 2016 · 1 revision

A Series pattern describes a structured sequence of Motifs seperated by Gaps.

Creation

let series = Series(Motif("ATTnC", 0.9); Gap(-1, 2); Motif("ATG", 0.9); Gap(-1, 2); Motif("CCT")])

Usage

let mySeq = Bio.Sequence(Bio.Alphabets.DNA, "ATTGCACATGCCT")
let series = Series([Motif("ATTnC", 0.9); Gap(-1, 2); Motif("ATG", 0.9); Gap(-1, 2); Motif("CCT")])

series.Match(mySeq) // true
Clone this wiki locally