Mercurial > repos > yufei-luo > s_mart
comparison commons/pyRepetUnit/align/hmmOutputParsing/HmmpfamOutput2align.py @ 18:94ab73e8a190
Uploaded
author | m-zytnicki |
---|---|
date | Mon, 29 Apr 2013 03:20:15 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
17:b0e8584489e6 | 18:94ab73e8a190 |
---|---|
1 from commons.pyRepetUnit.hmmer.hmmOutput.HmmpfamOutputProcessing import HmmpfamOutputProcessing | |
2 | |
3 ##data processor : read an output from hmmpfam and transform it into .align file | |
4 # | |
5 class HmmpfamOutput2align( object ): | |
6 | |
7 ## constructor | |
8 # | |
9 def __init__(self): | |
10 self.hmmpfamOutputProcess = HmmpfamOutputProcessing() | |
11 self._inputFile = "" | |
12 self._outputFile = "" | |
13 | |
14 ## set input file | |
15 # | |
16 # @param input file input file | |
17 # | |
18 def setInputFile(self, input): | |
19 self._inputFile = input | |
20 | |
21 ## set output file | |
22 # | |
23 # @param output file output file | |
24 # | |
25 def setOutputFile(self, output): | |
26 self._outputFile = output | |
27 | |
28 | |
29 ##read a hmmpfam output file, parse it and, write the corresponding .align file | |
30 # | |
31 def run( self ): | |
32 self.hmmpfamOutputProcess.readHmmOutputsAndWriteAlignFile( self._inputFile, self._outputFile ) |