def constructions(s): return [ FmIndex.fromString(s), FmIndex.fromSuffixArray(SuffixArray.fromString(s)), FmIndex.fromSuffixTree(SuffixTree(s)) ]
def fromSuffixTree(cls, stree, cpIval=4, ssaIval=4): return FmIndex.fromSuffixArray(SuffixArray.fromSuffixTree(stree), cpIval=cpIval, ssaIval=ssaIval)