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

Pfam not completely working #1827

Closed
jamesmkrieger opened this issue Feb 14, 2024 · 13 comments
Closed

Pfam not completely working #1827

jamesmkrieger opened this issue Feb 14, 2024 · 13 comments

Comments

@jamesmkrieger
Copy link
Contributor

For example, the AMPAR test only gives 2 out of 4 pfam domains at least sometimes

@jamesmkrieger
Copy link
Contributor Author

@atbogetti, any chance you could check this too please seeing as you’ve just been over the pfam code changes?

@atbogetti
Copy link
Member

@jamesmkrieger Yes, I have actually started to look into this already. I will figure it out.

@jamesmkrieger
Copy link
Contributor Author

Thanks! Glad to have you on board

@atbogetti
Copy link
Member

@jamesmkrieger I tried the pfam tests and also encountered failures. I have narrowed down the source of the issue to this line:

ags[i] = ag.select('resindex {0} to {1}'.format(
resiStart, resiEnd))
. For some reason, that way of selecting the residues is causing the following error: TypeError: can't multiply sequence by non-int of type 'Forward'. I tried manually inputting the range and got the same error, though when I just use a single number as the selection (for instance, resindex 10) it works just fine. Do you know if something changed in the residue selection language recently? I can dig deeper but just wanted to see if this may be familiar to you before proceeding.

@jamesmkrieger
Copy link
Contributor Author

I don’t think it changed. The selection parser is too complicated to change really. Maybe something changed in pyparsing though

@atbogetti
Copy link
Member

Bingo. I downgraded pyparsing to v3.1.1 (current is 3.1.2) and it works now. The pfam tests also all pass without any failures.

@jamesmkrieger
Copy link
Contributor Author

Great!

@jamesmkrieger
Copy link
Contributor Author

Can you revert #1816 and see if they still pass please?

Also, please can you check if this fixes the problems with the latest numpy versions too (see #1655)?

@atbogetti
Copy link
Member

@jamesmkrieger Yes I will check those and get back to you.

@jamesmkrieger
Copy link
Contributor Author

Bingo. I downgraded pyparsing to v3.1.1 (current is 3.1.2) and it works now. The pfam tests also all pass without any failures.

Actually, that's not true. The pfam tests pass because I changed them. The original tests still fail if we change the pyparsing version (see https://github.com/prody/ProDy/actions/runs/8294288857?pr=1845), so I don't think that's actually the issue here although it's definitely an issue that we have to fix (see also #1844).

@jamesmkrieger
Copy link
Contributor Author

Can you revert #1816 and see if they still pass please?

This was the wrong number. The one I meant was #1825, which I have reverted in #1845 that led to the tests failing as mentioned above. Sorry

@jamesmkrieger
Copy link
Contributor Author

Also, please can you check if this fixes the problems with the latest numpy versions too (see #1655)?

The numpy thing with pyparsing is now checked and that indeed fixed it.

@jamesmkrieger
Copy link
Contributor Author

closed by #1851

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

No branches or pull requests

2 participants