Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121665090
protein_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
Sat, Jul 12, 23:11
Size
1 KB
Mime Type
text/x-python
Expires
Mon, Jul 14, 23:11 (2 d)
Engine
blob
Format
Raw Data
Handle
27362780
Attached To
R2010 molecular_data_processing
protein_sequence.py
View Options
#!/usr/bin/env python
# -*- coding: utf-8 -*-
" module containing class ProteinSequence"
##########################################################################
from
sequence
import
Sequence
##########################################################################
class
ProteinSequence
(
Sequence
):
"""
class ProteinSequence: to be implemented, will store information about sequences of type protein
"""
# ------------------------------------------------------------------ #
# 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 """
pass
def
printSequence
(
self
,
cluster_info
=
False
):
""" printSequence : print information about the object of type protein"""
Sequence
.
printSequence
(
self
,
cluster_info
=
False
)
##########################################################################
if
__name__
==
'__main__'
:
test
=
ProteinSequence
(
'protein_test_sequence'
,
'test_sample'
,
'VLPTG'
)
Event Timeline
Log In to Comment