@staticmethod<EOL><INDENT>def import_from_nhmmer_table(hmmout_path):<DEDENT>
<EOL>res=HMMSearchResult()<EOL>res.fields = [<EOL>SequenceSearchResult.QUERY_ID_FIELD,<EOL>SequenceSearchResult.HMM_NAME_FIELD,<EOL>SequenceSearchResult.ALIGNMENT_LENGTH_FIELD,<EOL>SequenceSearchResult.QUERY_FROM_FIELD,<EOL>SequenceSearchResult.QUERY_TO_FIELD,<EOL>SequenceSearchResult.HIT_FROM_FIELD,<EOL>SequenceSearchResult.HIT_TO_FIELD,<EOL>SequenceSearchResult.ALIGNMENT_BIT_SCORE,<EOL>SequenceSearchResult.ALIGNMENT_DIRECTION,<EOL>]<EOL>for row in [x.rstrip().split() for x in open(hmmout_path) if not x.startswith('<STR_LIT:#>')]:<EOL><INDENT>alifrom    = int(row[<NUM_LIT:6>])<EOL>alito      = int(row[<NUM_LIT:7>])<EOL>aln_length = (alito-alifrom if alito-alifrom><NUM_LIT:0> else alifrom-alito)<EOL>res.results.append([row[<NUM_LIT:0>],<EOL>row[<NUM_LIT:2>],<EOL>aln_length,<EOL>int(row[<NUM_LIT:4>]),<EOL>int(row[<NUM_LIT:5>]),<EOL>alifrom,<EOL>alito,<EOL>row[<NUM_LIT>],<EOL>alito > alifrom<EOL>])<EOL><DEDENT>return res<EOL>
Generate new results object from the output of nhmmer search