Mercurial > repos > yufei-luo > s_mart
diff commons/pyRepetUnit/hmmer/hmmOutput/HmmOutput.py @ 18:94ab73e8a190
Uploaded
author | m-zytnicki |
---|---|
date | Mon, 29 Apr 2013 03:20:15 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/commons/pyRepetUnit/hmmer/hmmOutput/HmmOutput.py Mon Apr 29 03:20:15 2013 -0400 @@ -0,0 +1,30 @@ +## List of Hmmpfam or Hmmscan Output (that are too lists). +# +class HmmOutput( object ): + + list; + + def __init__( self ): + self._hmmpfamOutput = [] + + ## append an output in the list of output + # + # @param list name of the list + # + def append( self, list ): + self._hmmpfamOutput.append(list) + + ## return the length of the list of output + def len (self): + return len(self._hmmpfamOutput) + + ## return the output corresponding at the element number index in the list of output + # + # @param index number of index + # + def get(self, index): + return self._hmmpfamOutput[index] + + ## return the list of output + def getList(self): + return self._hmmpfamOutput