Page MenuHomec4science

dna_sequence.py
No OneTemporary

File Metadata

Created
Thu, Jul 10, 09:16

dna_sequence.py

#!/usr/bin/env python
# -*- coding: utf-8 -*-
" module containing class DNAsequence"
##########################################################################
from sequence import Sequence
##########################################################################
class DNAsequence(Sequence):
"""
class DNAsequence: for the moment the mother is sufficient, but can maybe be useful in the future
"""
# ------------------------------------------------------------------ #
# Constructors/Destructors #
# ------------------------------------------------------------------ #
def __init__(self,ID, sample, sequence):
"""__init__: is the same as the mother class 'Sequence' __init__ """
Sequence.__init__(self, ID, sample, sequence)
def __del__(self):
"""__del__: not implemented yet """
pass
# ------------------------------------------------------------------ #
# Methods #
# ------------------------------------------------------------------ #
# public:
def translate(self):
"""translate: not implemented yet, translate a DNA sequence into the 6 possible protein sequences """
pass
def reverse_complement(self):
"""reverse_complement: give the reverse complement of a DNA sequence """
pass
def printSequence(self, cluster_info = False):
""" printSequence : print information about the object of type DNAsequence"""
Sequence.printSequence(self, cluster_info = False)
##########################################################################
if __name__ == '__main__':
test = DNAsequence('>M0blablabla','-2015_12_28_F','AGTTCCCGTA')

Event Timeline