Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmscore issue #46

Open
bkellman opened this issue Apr 30, 2018 · 1 comment
Open

tmscore issue #46

bkellman opened this issue Apr 30, 2018 · 1 comment
Assignees
Labels

Comments

@bkellman
Copy link

"fatcat.parse_fatcat(fatcat_outfile)"

When I try to run parse_fatcat I get an error:

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-4-a327e7af1a57> in <module>()
----> 1 fatcat.parse_fatcat(fatcat_outfile)

/home/ben/anaconda2/lib/python2.7/site-packages/ssbio/protein/structure/properties/fatcat.pyc in parse_fatcat(fatcat_xml)
     96     # Find the tmScore of the alignment
     97     if soup.find('block'):
---> 98         fatcat_results['tm_score'] = float(soup.find('afpchain')['tmscore'])
     99 
    100     return fatcat_results

/home/ben/anaconda2/lib/python2.7/site-packages/bs4/element.pyc in __getitem__(self, key)
    995         """tag[key] returns the value of the 'key' attribute for the tag,
    996         and throws an exception if it's not there."""
--> 997         return self.attrs[key]
    998 
    999     def __iter__(self):

KeyError: 'tmscore'

There seems to be an issue with the tm_score or tmscore key

@nmih nmih self-assigned this May 10, 2018
@nmih nmih added the bug label May 10, 2018
@nmih
Copy link
Member

nmih commented May 10, 2018

Since the public version of FATCAT doesn't have tmscores, I'll have to change that to parse another similarity score

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants