-
Notifications
You must be signed in to change notification settings - Fork 157
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
ExtendModel Nodes and Atoms Incompatible #1962
Comments
It does seem like it should work:
Can you email me your pdb file to try at [email protected]? |
maybe the CY1 is causing the problem |
I just tried with 1d5m in the pdb that has CY1 and it isn't recognising it in ca or backbone, so I don't think that's the problem. I've also just tried your step of selecting protein and then selecting bb from the selection and that doesn't seem to be the problem either Perhaps the problem is that you overrode fex with the selection, but I don't think that's it either. Still it's bad practice |
ok, replacing the variable isn't it either as this works fine:
|
Can you give me your previous commands of how you generated fex_ca and anm_fex in case there's something else strange there? I shouldn't think there would be though |
In [4]: fex = parsePDB('comp_min.pdb') In [5]: fex = fex.select('protein or resname CY1') In [6]: fex_ca = fex.select('protein name CA or resname CY1 name CA') In [7]: fex In [8]: fex_ca In [11]: fex_bb = fex.select('protein name CA C N O or resname CY1 CA C N O') In [12]: fex_bb In [13]: fex_ca In [14]: fex_anm = ANM('fex_ca') In [15]: fex_anm.buildHessian(fex_ca) In [16]: fex_anm.calcModes() In [17]: bb_fex_anm, bb_fex_atoms = extendModel(fex_anm, fex_ca, fex_bb) ValueError Traceback (most recent call last) File ~/miniconda3/envs/py39_prody/lib/python3.9/site-packages/prody/dynamics/editing.py:44, in extendModel(model, nodes, atoms, norm) File ~/miniconda3/envs/py39_prody/lib/python3.9/site-packages/prody/atomic/functions.py:349, in extendAtoms(nodes, atoms, is3d) ValueError: not enough data to get a single residue for all atoms |
Ok, the problem is with cases where it gets confused and maps other atoms as parts of the residue initially and then removes them. It creates a list of residues and so it thinks that it can't find enough nodes to give them data, but in this case it's a list of 1 residue so we just need to extract it. The problem residue for some reason was GLN 357 but I've no idea why |
After installing the development version of prody from github, you can now checkout my branch expand_extract to try the fixed version |
the pull request is now merged so you should be fine with the main prody on github |
thank you!! is there anything i need to install locally to get it working on my end? |
what do you have installed currently? |
I genuinely have no idea how to find out, but I have not changed anything since using the command line install from the site |
Ok, then yes, you need to install again for sure what you should do is clone prody from GitHub and install it as an update/upgrade (with U) and in development mode (e for editable) and build the c extensions too: git clone https://github.com/prody/ProDy.git This should install from the main branch by default |
Please confirm whether you have managed to install the latest prody and whether it has fixed the problem |
Hi,
I think I have managed to install the update, but it has not fixed the problem so I am uncertain.
[cid:31d1c5cc-34b3-4848-953e-10047257b130]
[cid:ecb67234-5bf2-4990-8e2b-4cc6b46b0818][cid:f652fca8-efbe-4130-acab-00da92755540]
Thank for checking in!
Riley
Riley Eisert-Sasse (he/they)
PhD Candidate, Okafor Group, Department of Chemistry
TA/Supervisory TA, CHEM111
"Knowledge and ability must be combined with ambition as well as with a sense of honesty and a severe conscience" -analytical chemist Carl Remigius Fresenius
…________________________________
From: James Krieger ***@***.***>
Sent: Monday, October 7, 2024 9:34 AM
To: prody/ProDy ***@***.***>
Cc: Eisert-Sasse, Riley Kel ***@***.***>; Author ***@***.***>
Subject: Re: [prody/ProDy] ExtendModel Nodes and Atoms Incompatible (Issue #1962)
Please confirm whether you have managed to install the latest prody and whether it has fixed the problem
—
Reply to this email directly, view it on GitHub<#1962 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BIV7QJ57TINHOQLQHZP63IDZ2KEUTAVCNFSM6AAAAABO2Y6QOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJWHE2TCNBVHA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Can you run Can you also try these outside python: It could be that you have to uninstall your previous prody. |
[cid:98198891-006a-4ae3-8366-d2640126d4b6]
looks like it did not install - i will be getting dept IT involved as i donot have all the permissions to install stuff on my own
Riley Eisert-Sasse (he/they)
PhD Candidate, Okafor Group, Department of Chemistry
TA/Supervisory TA, CHEM111
"Knowledge and ability must be combined with ambition as well as with a sense of honesty and a severe conscience" -analytical chemist Carl Remigius Fresenius
…________________________________
From: James Krieger ***@***.***>
Sent: Monday, October 7, 2024 12:11 PM
To: prody/ProDy ***@***.***>
Cc: Eisert-Sasse, Riley Kel ***@***.***>; Author ***@***.***>
Subject: Re: [prody/ProDy] ExtendModel Nodes and Atoms Incompatible (Issue #1962)
Can you run print(prody.__path__) and print(prody.__version__) inside python?
If it worked, then you should end up with the path to your prody clone and version 2.5.0
Can you also try these outside python: pip list | grep -i prody? This should show something like the following:
ProDy 2.5.0 /home/jkrieger/software/scipion3/software/em/prody-github/ProDy
It could be that you have to uninstall your previous prody.
—
Reply to this email directly, view it on GitHub<#1962 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BIV7QJZO6DFRNGMB2TKNXZTZ2KXCTAVCNFSM6AAAAABO2Y6QOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJXGM2DSMZUGE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
that's a shame Have you tried using a conda environment? Usually permissions work fine then |
i know i am unable to install any software under any circumstance, but the user when installing last time was 'ecosadmin'. i think we will need to remove the previous version - will get back to you once we try again
Riley Eisert-Sasse (he/they)
PhD Candidate, Okafor Group, Department of Chemistry
TA/Supervisory TA, CHEM111
"Knowledge and ability must be combined with ambition as well as with a sense of honesty and a severe conscience" -analytical chemist Carl Remigius Fresenius
…________________________________
From: James Krieger ***@***.***>
Sent: Monday, October 7, 2024 12:21 PM
To: prody/ProDy ***@***.***>
Cc: Eisert-Sasse, Riley Kel ***@***.***>; Author ***@***.***>
Subject: Re: [prody/ProDy] ExtendModel Nodes and Atoms Incompatible (Issue #1962)
that's a shame
Have you tried using a conda environment? Usually permissions work fine then
—
Reply to this email directly, view it on GitHub<#1962 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BIV7QJ4HKAKMS2YH6JH4A3LZ2KYJ7AVCNFSM6AAAAABO2Y6QOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJXGM3TEMRRGM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
ok, good luck |
Hi,
Thank you for all the previous help.
I am having issues with the ExtendModel function. It seems like my selections for the backbone and calphas are correct, but I am continuously getting the errors below:
This protein has some Zn atoms and some non-standard residues (coded as CY1, they are cysteines which bind the Zn), but I have accounted for that and when looking at the atom counts, backbone = calpha*4 which is correct.
What issue with the model are these errors pointing to, and how can I work to fix it? I have already done some extensive troubleshooting with College of Science IT services and fixed the issue with the non-standard residues, but this is still occurring.
I also exported my backbone as a PDB, and it matched identically with my original PDB, excluding Zn and ligands, so there are no missing residues or other problems with the protein model I can find.
The text was updated successfully, but these errors were encountered: