Example #1
0
    def __init__(self, mathType=float):
        ConfigFactory.__init__(self)
        self.mathType = mathType
        for obj in [
            HMM,
            State,
            GeneralizedHMM,
            GeneralizedState,
            GeneralizedPairHMM,
            GeneralizedPairState,
            PairRepeatState,
            HighOrderState,
            HighOrderRepeatState,
            RepeatLengthDistribution,
            SimpleMatchState,
            SimpleIndelState,
            LogNum,
        ]:

            self.addFunction(obj.__name__, getInitializerObject(obj, mathType))

        for (name, function) in [
            ("JukesCantorGenerator", JukesCantorGenerator),
            ("backgroundprob", BackgroundProbabilityGenerator),
        ]:
            self.addFunction(name, getInitializerFunction(function, mathType))

        for (name, constant) in [
            # STUB
        ]:
            self.addConstant(name, constant)