code: def parse_hmm_hit_list(self, hmm_hit_list):
  
          '''
          take a list of hmm hit results, take needed info,
  
          '''
  
          tuplist = []
  
          for hit in hmm_hit_list:
              for hsp in hit.hsps:
                  tup = tuplist.append((hit._query_id.split('_')[0],
                                       hit.bitscore,
                                       hit.evalue,
                                       hsp.bias,
                                       hsp.env_start,
                                       hsp.env_end))
      
          cols = ['name','bitscore','evalue', 'bias', 'hsp_start','hsp_end']
              
          df = DataFrame(tuplist, columns=cols)
          df.set_index('name', inplace=True)
          return df parse_hmm_hit_list(self, hmm_hit_list):
  
          '''
          take a list of hmm hit results, take needed info,
  
          '''
  
          tuplist = []
  
          for hit in hmm_hit_list:
              for hsp in hit.hsps:
                  tup = tuplist.append((hit._query_id.split('_')[0],
                                       hit.bitscore,
                                       hit.evalue,
                                       hsp.bias,
                                       hsp.env_start,
                                       hsp.env_end))
      
          cols = ['name','bitscore','evalue', 'bias', 'hsp_start','hsp_end']
              
          df = DataFrame(tuplist, columns=cols)
          df.set_index('name', inplace=True)
          return df
docs: take a list of hmm hit results, take needed info,