HMMER file format support for the GHMM library.
Imported modules
|
|
import StringIO
import re
import string
import sys
from xml.dom import minidom
|
Functions
|
|
|
|
build_matrix
|
build_matrix ( n, m )
builds n x m matrix with lists
|
|
del_mat
|
del_mat ( mat, r )
deletes the <r>th columns and row from the matrix
|
|
gotoLine
|
gotoLine ( f, res )
|
|
map_entries
|
map_entries ( dic, lis )
translates the letters to the number of the columns
|
|
norm_mat
|
norm_mat ( mat )
|
|
red_mat_end
|
red_mat_end ( mat, r )
delete <r> rows and columns from the end of the matrix
|
|
remove_state
|
remove_state ( matrix, index )
|
|
sum_mrows
|
sum_mrows ( mat )
sums the rows of a matrix
|
|
toint
|
toint ( i )
return integer if i is value or 0
|
|
write_file
|
write_file ( strf, strcontent )
writes <strcontent> in file <strf>
|
|
xml_newdatanode
|
xml_newdatanode (
doc,
nodename,
attributename,
attribute,
text,
)
returns node with attribute and text
|
Classes
|
|
hmmer |
reads hmmer file and converts it to xml
|
|