Mercurial > repos > yufei-luo > s_mart
comparison commons/pyRepetUnit/hmmer/hmmOutput/HmmOutput.py @ 31:0ab839023fe4
Uploaded
| author | m-zytnicki |
|---|---|
| date | Tue, 30 Apr 2013 14:33:21 -0400 |
| parents | 94ab73e8a190 |
| children |
comparison
equal
deleted
inserted
replaced
| 30:5677346472b5 | 31:0ab839023fe4 |
|---|---|
| 1 ## List of Hmmpfam or Hmmscan Output (that are too lists). | |
| 2 # | |
| 3 class HmmOutput( object ): | |
| 4 | |
| 5 list; | |
| 6 | |
| 7 def __init__( self ): | |
| 8 self._hmmpfamOutput = [] | |
| 9 | |
| 10 ## append an output in the list of output | |
| 11 # | |
| 12 # @param list name of the list | |
| 13 # | |
| 14 def append( self, list ): | |
| 15 self._hmmpfamOutput.append(list) | |
| 16 | |
| 17 ## return the length of the list of output | |
| 18 def len (self): | |
| 19 return len(self._hmmpfamOutput) | |
| 20 | |
| 21 ## return the output corresponding at the element number index in the list of output | |
| 22 # | |
| 23 # @param index number of index | |
| 24 # | |
| 25 def get(self, index): | |
| 26 return self._hmmpfamOutput[index] | |
| 27 | |
| 28 ## return the list of output | |
| 29 def getList(self): | |
| 30 return self._hmmpfamOutput |
