Mercurial > repos > yufei-luo > s_mart
diff commons/pyRepetUnit/align/hmmOutputParsing/HmmscanOutput2align.py @ 31:0ab839023fe4
Uploaded
author | m-zytnicki |
---|---|
date | Tue, 30 Apr 2013 14:33:21 -0400 |
parents | 94ab73e8a190 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/commons/pyRepetUnit/align/hmmOutputParsing/HmmscanOutput2align.py Tue Apr 30 14:33:21 2013 -0400 @@ -0,0 +1,28 @@ +from commons.pyRepetUnit.hmmer.hmmOutput.HmmscanOutputProcessing import HmmscanOutputProcessing +##data processor : read an output from hmmscan and transform it into .align file +# +class HmmscanOutput2align( object ): + + ## constructor + # + def __init__(self): + self.hmmscanOutputProcess = HmmscanOutputProcessing() + self._inputFile = "" + self._outputFile = "" + + ## set input file + # + # @param input file input file + # + def setInputFile(self, input): + self._inputFile = input + ## set output file + # @param output file output file + # + def setOutputFile(self, output): + self._outputFile = output + + ##read a hmmscan output file, parse it and, write the corresponding .align file + # + def run( self ): + self.hmmscanOutputProcess.readHmmOutputsAndWriteAlignFile( self._inputFile, self._outputFile )