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

support mmcif with no b fac and occ #2046

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
source activate test
conda config --add channels conda-forge
conda install --yes numpy scipy nose requests
conda install --yes pdbfixer mdtraj
conda install --yes pdbfixer mdtraj openmm
pip install mmtf-python scikit-learn
pip install .
python setup.py build_ext --inplace --force
Expand Down
6 changes: 4 additions & 2 deletions prody/proteins/ciffile.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,10 @@ def _parseMMCIFLines(atomgroup, lines, model, chain, subset,

serials[acount] = line.split()[fields['id']]
elements[acount] = line.split()[fields['type_symbol']]
bfactors[acount] = line.split()[fields['B_iso_or_equiv']]
occupancies[acount] = line.split()[fields['occupancy']]
if 'B_iso_or_equiv' in fields.keys():
bfactors[acount] = line.split()[fields['B_iso_or_equiv']]
if 'occupancy' in fields.keys():
occupancies[acount] = line.split()[fields['occupancy']]

acount += 1

Expand Down
15 changes: 11 additions & 4 deletions prody/proteins/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"""

__author__ = 'Karolina Mikulska-Ruminska'
__credits__ = ['James Krieger', 'Karolina Mikulska-Ruminska']
__email__ = ['[email protected]', '[email protected]']
__credits__ = ['James Krieger', 'Karolina Mikulska-Ruminska', 'Anupam Banerjee']
__email__ = ['[email protected]', '[email protected]', '[email protected]']


import numpy as np
Expand Down Expand Up @@ -4545,7 +4545,14 @@ def buildInteractionMatrixEnergy(self, **kwargs):
O Keskin, I Bahar and colleagues from [OK98]_ and have RT units.

'CS' is from MD simulations of amino acid pairs from Carlos Simmerling
and Gary Wu in the InSty paper (under preparation) and have units of kcal/mol. """
and Gary Wu in the [MR25]_ and have units of kcal/mol.

.. [MR25] Mikulska-Ruminska K, Krieger JM, Cao X, Banerjee A, Wu G,
Bogetti AT, Zhang F, Simmerling C, Coutsias EA, Bahar I
InSty: a new module in ProDy for evaluating the interactions
and stability of proteins
*Bioinformatics* **2025** 169009
"""

import numpy as np
import matplotlib
Expand Down Expand Up @@ -4898,7 +4905,7 @@ def showCumulativeInteractionTypes(self, **kwargs):
O Keskin, I Bahar and colleagues from [OK98]_ and have RT units.

'CS' is from MD simulations of amino acid pairs from Carlos Simmerling
and Gary Wu for the InSty paper (under preparation) and have units kcal/mol.
and Gary Wu for [MR25]_ and have units kcal/mol.
"""

import numpy as np
Expand Down
Loading
Loading