annotate commons/pyRepetUnit/hmmer/hmmOutput/HmmOutput.py @ 31:0ab839023fe4

Uploaded
author m-zytnicki
date Tue, 30 Apr 2013 14:33:21 -0400
parents 94ab73e8a190
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
1 ## List of Hmmpfam or Hmmscan Output (that are too lists).
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
2 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
3 class HmmOutput( object ):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
4
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
5 list;
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
6
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
7 def __init__( self ):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
8 self._hmmpfamOutput = []
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
9
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
10 ## append an output in the list of output
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
11 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
12 # @param list name of the list
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
13 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
14 def append( self, list ):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
15 self._hmmpfamOutput.append(list)
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
16
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
17 ## return the length of the list of output
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
18 def len (self):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
19 return len(self._hmmpfamOutput)
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
20
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
21 ## return the output corresponding at the element number index in the list of output
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
22 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
23 # @param index number of index
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
24 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
25 def get(self, index):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
26 return self._hmmpfamOutput[index]
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
27
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
28 ## return the list of output
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
29 def getList(self):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
30 return self._hmmpfamOutput