Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121372971
dna_sequence.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 10, 09:16
Size
1 KB
Mime Type
text/x-python
Expires
Sat, Jul 12, 09:16 (2 d)
Engine
blob
Format
Raw Data
Handle
27308578
Attached To
R2010 molecular_data_processing
dna_sequence.py
View Options
#!/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
Log In to Comment