def get_sequence_record (self, gene_type): ''' Retrieves the gene sequence record dependent on the gene type @param gene_type: gene type can be normal and extended @return sequence of SeqRecord type ''' if gene_type == "normal": try: return self.sequence except AttributeError: self.sequence = FileUtilities.load_fasta_single_record(self.get_gene_file_path()) else: try: return self.extended_sequence except AttributeError: self.extended_sequence = FileUtilities.load_fasta_single_record(self.get_expanded_gene_file_path())