annotate commons/pyRepetUnit/align/hmmOutputParsing/HmmpfamOutput2align.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 from commons.pyRepetUnit.hmmer.hmmOutput.HmmpfamOutputProcessing import HmmpfamOutputProcessing
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
2
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
3 ##data processor : read an output from hmmpfam and transform it into .align file
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
4 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
5 class HmmpfamOutput2align( object ):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
6
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
7 ## constructor
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
8 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
9 def __init__(self):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
10 self.hmmpfamOutputProcess = HmmpfamOutputProcessing()
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
11 self._inputFile = ""
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
12 self._outputFile = ""
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
13
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
14 ## set input file
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
15 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
16 # @param input file input file
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
17 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
18 def setInputFile(self, input):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
19 self._inputFile = input
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
20
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
21 ## set output file
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
22 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
23 # @param output file output file
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
24 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
25 def setOutputFile(self, output):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
26 self._outputFile = output
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
27
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
28
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
29 ##read a hmmpfam output file, parse it and, write the corresponding .align file
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
30 #
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
31 def run( self ):
94ab73e8a190 Uploaded
m-zytnicki
parents:
diff changeset
32 self.hmmpfamOutputProcess.readHmmOutputsAndWriteAlignFile( self._inputFile, self._outputFile )