Scripts: mapdiff.py
| File mapdiff.py, 408 bytes (added by , 8 years ago) |
|---|
| Line | |
|---|---|
| 1 | # Report the minimum and maximum difference between two maps. |
| 2 | path1 = '/Users/goddard/Downloads/Chimera/EMDB/emd_1733.map' |
| 3 | path2 = '/Users/goddard/Downloads/Chimera/EMDB/emd_1740.map' |
| 4 | |
| 5 | from chimera import openModels as om |
| 6 | m1 = om.open(path1)[0] |
| 7 | m2 = om.open(path2)[0] |
| 8 | |
| 9 | mdiff = m1.full_matrix() - m2.full_matrix() |
| 10 | print('Difference %s - %s, max %.3g, min %.3g' % (m1.name, m2.name, mdiff.max(), mdiff.min())) |
![[Chimera Issue Tracking System]](/trac/chimera/chrome/site/chimera_logo.png)