def get_protein_sequence(self, seq_dict, in_frame=True): """ Returns the translated protein sequence for this transcript in single character space. Overrides this function in the Transcript class to make use of frame information. """ cds = self.get_cds(seq_dict, in_frame) if len(cds) < 3: return "" return translate_sequence(cds)
def get_protein_sequence(self, seq_dict): """ Returns the translated protein sequence for this transcript in single character space. """ cds = self.get_cds(seq_dict) if len(cds) < 3: return "" return translate_sequence(self.get_cds(seq_dict).upper())