def add_hits_to_proteins(self, hmm_hit_list):
for org in self.organisms:<EOL><INDENT>print("<STR_LIT>", org.accession)<EOL>for hit in hmm_hit_list:<EOL><INDENT>hit_org_id = hit.id.split('<STR_LIT:U+002C>')[<NUM_LIT:0>]<EOL>hit_prot_id = hit.id.split('<STR_LIT:U+002C>')[<NUM_LIT:1>]<EOL>if org.accession == hit_org_id:<EOL><INDENT>for prot in org.proteins:<EOL><INDENT>if prot.accession == hit_prot_id:<EOL><INDENT>prot.hmm_hit_list.append(hit)<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>
Add HMMER results to Protein objects