-
Notifications
You must be signed in to change notification settings - Fork 0
Series Pattern
Jess Davis edited this page Dec 15, 2016
·
1 revision
A Series pattern describes a structured sequence of Motifs seperated by Gaps.
let series = Series(Motif("ATTnC", 0.9); Gap(-1, 2); Motif("ATG", 0.9); Gap(-1, 2); Motif("CCT")])
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