code: def add_hits_to_proteins(self, hmm_hit_list):
  
          '''Add HMMER results to Protein objects'''
  
          for org in self.organisms:
              print "adding SearchIO hit objects for", org.accession
  
              for hit in hmm_hit_list:
                  hit_org_id = hit.id.split(',')[0]
                  hit_prot_id = hit.id.split(',')[1]
  
                  if org.accession == hit_org_id:
                      for prot in org.proteins:
                          if prot.accession == hit_prot_id:
                              prot.hmm_hit_list.append(hitf add_hits_to_proteins(self, hmm_hit_list):
  
          '''Add HMMER results to Protein objects'''
  
          for org in self.organisms:
              print "adding SearchIO hit objects for", org.accession
  
              for hit in hmm_hit_list:
                  hit_org_id = hit.id.split(',')[0]
                  hit_prot_id = hit.id.split(',')[1]
  
                  if org.accession == hit_org_id:
                      for prot in org.proteins:
                          if prot.accession == hit_prot_id:
                              prot.hmm_hit_list.append(hit)
docs: Add HMMER results to Protein objects