# UnboundLocalError: local variable 'go\_mf' referenced before assignment

**URL:** https://forum.biobakery.org/t/unboundlocalerror-local-variable-go-mf-referenced-before-assignment/7219
**Category:** MetaWIBELE
**Created:** [July 3, 2024, 7:47pm UTC](https://forum.biobakery.org/t/unboundlocalerror-local-variable-go-mf-referenced-before-assignment/7219 "2024-07-03T19:47:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Stephen1](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/stephen1/32/2287_2.png) [@Stephen1](https://forum.biobakery.org/u/Stephen1)
#### Post date: [July 3, 2024, 7:47pm UTC](https://forum.biobakery.org/t/unboundlocalerror-local-variable-go-mf-referenced-before-assignment/7219/1 "2024-07-03T19:47:59Z")

</div>

Hi Yancong,

I think there is a typo bug in line 215 of metawibele/characterize/uniref\_protein\_family.py, the correct code should be “go\_mf = info[titles[“GO\_MF”]]”

Kind regard,  
Stephen

---

<div class="post-metadata">

### Author: ![YancongZhang](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/yancongzhang/32/1176_2.png) [@YancongZhang](https://forum.biobakery.org/u/YancongZhang)
#### Post date: [July 3, 2024, 8:11pm UTC](https://forum.biobakery.org/t/unboundlocalerror-local-variable-go-mf-referenced-before-assignment/7219/2 "2024-07-03T20:11:51Z")

</div>

Hi Stephen,

Fixed it in our latest prerelease v0.4.8. Thanks for pointing it out!

Best,  
Yancong
