def __init__(self, ref_data, alt_data):
        """Constructor

        :param ref_data: reference transcript record
        :type ref_data: recordtype
        :param alt_data: alt transcript record
        :type ref_data: recordtype
        """
        self._ref_data = ref_data
        self._alt_data = alt_data
        self._protein_accession = self._ref_data.protein_accession
        self._ref_seq = self._ref_data.aa_sequence
        self._alt_seq = self._alt_data.aa_sequence
        self._is_frameshift = self._alt_data.is_frameshift
        self._frameshift_start = self._alt_data.frameshift_start
        self._is_substitution = self._alt_data.is_substitution
        self._is_ambiguous = self._alt_data.is_ambiguous
        self._is_init_met = False

        if DBG:
            print("len ref seq:{} len alt seq:{}".format(len(self._ref_seq), len(self._alt_seq)))
            print("fs start:{} protein ac:{}".format(self._frameshift_start,
                                                     self._protein_accession))
            print(self._ref_seq)
            print(self._alt_seq)
            print("aa variant start: {}".format(self._alt_data.variant_start_aa))
            print(self._ref_data.transcript_sequence)
            print(self._alt_data.transcript_sequence)
def __init__ ( self , ref_data , alt_data ) : self . _ref_data = ref_data self . _alt_data = alt_data self . _protein_accession = self . _ref_data . protein_accession self . _ref_seq = self . _ref_data . aa_sequence self . _alt_seq = self . _alt_data . aa_sequence self . _is_frameshift = self . _alt_data . is_frameshift self . _frameshift_start = self . _alt_data . frameshift_start self . _is_substitution = self . _alt_data . is_substitution self . _is_ambiguous = self . _alt_data . is_ambiguous self . _is_init_met = False if DBG : print ( "len ref seq:{} len alt seq:{}" . format ( len ( self . _ref_seq ) , len ( self . _alt_seq ) ) ) print ( "fs start:{} protein ac:{}" . format ( self . _frameshift_start , self . _protein_accession ) ) print ( self . _ref_seq ) print ( self . _alt_seq ) print ( "aa variant start: {}" . format ( self . _alt_data . variant_start_aa ) ) print ( self . _ref_data . transcript_sequence ) print ( self . _alt_data . transcript_sequence )
Constructor

        :param ref_data: reference transcript record
        :type ref_data: recordtype
        :param alt_data: alt transcript record
        :type ref_data: recordtype