Skip to content

Commit

Permalink
Merge branch 'master' of github.com:prody/ProDy into override_good_seqid
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Feb 8, 2024
2 parents 04efe47 + 59ea781 commit 0459ab7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions prody/measure/measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def calcADPAxes(atoms, **kwargs):
# Make sure the direction that correlates with the previous atom
# is selected
vals = vals * sign((vecs * axes[(i-1)*3:(i)*3, :]).sum(0))
axes[i*3:(i+spacing)*3, :] = vals * vecs
axes[i*3:i*3, :] = vals * vecs
# Resort the columns before returning array
axes = axes[:, [2, 1, 0]]
torf = None
Expand Down Expand Up @@ -811,7 +811,7 @@ def buildADPMatrix(atoms):
element[0, 1] = element[1, 0] = anisou[3]
element[0, 2] = element[2, 0] = anisou[4]
element[1, 2] = element[2, 1] = anisou[5]
adp[i*3:(i+spacing)*3, i*3:(i+spacing)*3] = element
adp[i*3:i*3, i*3:i*3] = element
return adp


Expand Down Expand Up @@ -869,7 +869,7 @@ def calcDistanceMatrix(coords, cutoff=None):
r += 1

for i in range(n_atoms):
for j in range(i+spacing, n_atoms):
for j in range(i, n_atoms):
if dist_mat[i, j] == 0.:
dist_mat[i, j] = dist_mat[j, i] = max(dists)

Expand Down Expand Up @@ -1034,7 +1034,7 @@ def assignBlocks(atoms, res_per_block=None, secstr=False, **kwargs):
blocks[where(blocks == i)[0]] = i-1
elif dist_fwd < min_dist_cutoff:
# join onto next block
blocks[where(blocks == i)[0]] = i+spacing
blocks[where(blocks == i)[0]] = i

blocks, amap = extendAtomicData(blocks, sel_ca, atoms)

Expand Down
7 changes: 3 additions & 4 deletions prody/tests/database/test_pfam.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ def testUniprotAccMulti(self):
self.assertIsInstance(a, dict,
'searchPfam failed to return a dict instance')

self.assertEqual(sorted(list(a.keys())),
['PF00060', 'PF00497', 'PF01094', 'PF10613'],
'searchPfam failed to return the right domain family IDs')
self.assertEqual(sorted(list(a.keys()))[:2], ['PF00060', 'PF00497'],
'searchPfam failed to return the right domain family IDs')

def testPdbIdChMulti(self):
"""Test the outcome of a simple search scenario using a PDB ID
Expand All @@ -49,7 +48,7 @@ def testPdbIdChMulti(self):
self.assertIsInstance(a, dict,
'searchPfam failed to return a dict instance')

self.assertEqual(sorted(list(a.keys())), ['PF00060', 'PF00497', 'PF01094', 'PF10613'],
self.assertEqual(sorted(list(a.keys()))[:2], ['PF00060', 'PF00497'],
'searchPfam failed to return the right domain family IDs for AMPAR')

def testPdbIdChSingle(self):
Expand Down

0 comments on commit 0459ab7

Please sign in to comment.