Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121206113
rna_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
Wed, Jul 9, 07:49
Size
1 KB
Mime Type
text/x-python
Expires
Fri, Jul 11, 07:49 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27294442
Attached To
R2010 molecular_data_processing
rna_sequence.py
View Options
#!/usr/bin/env python
# -*- coding: utf-8 -*-
" module containing class RNAsequence"
##########################################################################
from
sequence
import
Sequence
##########################################################################
class
RNAsequence
(
Sequence
):
"""
class RNAsequence: will store information about sequences of type RNA
"""
# ------------------------------------------------------------------ #
# Constructors/Destructors #
# ------------------------------------------------------------------ #
def
__init__
(
self
):
"""__init__: the same as the mother class 'Sequence' __init__ """
Sequence
.
__init__
(
self
,
ID
,
sample
,
sequence
)
def
__del__
(
self
):
"""__del__: not implemented """
pass
# ------------------------------------------------------------------ #
# Methods #
# ------------------------------------------------------------------ #
# public:
def
translate
(
self
):
"""translate: will transform a RNA sequence into the 6 possible protein sequences. to be implemented """
pass
def
reverse_complement
(
self
):
"""reverse_complement: To be implemented """
pass
def
printSequence
(
self
,
cluster_info
=
False
):
""" printSequence : print information about the object of type RNAsequence"""
Sequence
.
printSequence
(
self
,
cluster_info
=
False
)
##########################################################################
if
__name__
==
'__main__'
:
test
=
RNAsequence
(
'test_sequenc_name'
,
'test_sample'
,
'AUGCCUUGA'
)
Event Timeline
Log In to Comment