示例#1
0
    def __init__(self,
                 thetaEta=None,
                 pucker=None,
                 sugarDist=None,
                 startPhosDist=None,
                 endPhosDist=None):
        """Create and initialize a PseudoPredictor object
        OPTIONAL ARGUMENTS:
            Note that at least one of these arugments must be provided
            thetaEta        - A file contianing training data for theta eta Gaussian clusters
            pucker          - A file contianing training data for P-perp distances
            sugarDist       - A file contianing training data for sugar-sugar (C1'-C1') distances
            startPhosDist   - A file contianing training data for starting phosphate-phosphate distances
            endPhosDist     - A file contianing training data for ending phosphate-phosphate distances
        RETURNS:
            an initialized PseudoPredictor object
        """

        #create a dictionary of the input filenames
        inputFiles = locals()
        del inputFiles["self"]

        self.__inputFiles = inputFiles
        self.__thetaEtaPredic = None
        self.__puckerPredic = None
        self.__sugarDistPredic = None
        self.__startPhosDistPredic = None
        self.__endPhosDistPredic = None

        if thetaEta is not None:
            self.__thetaEtaPredic = ThetaEtaPredictor(thetaEta)

        if pucker is not None:
            self.__puckerPredic = SmoothProb(pucker)

        if sugarDist is not None:
            self.__sugarDistPredic = SmoothProb(sugarDist)

        if startPhosDist is not None:
            self.__startPhosDistPredic = SmoothProb(startPhosDist)

        if endPhosDist is not None:
            self.__endPhosDistPredic = SmoothProb(endPhosDist)