emdbva 0.0.1.dev131__tar.gz → 0.0.1.dev134__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {emdbva-0.0.1.dev131/emdbva.egg-info → emdbva-0.0.1.dev134}/PKG-INFO +1 -1
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134/emdbva.egg-info}/PKG-INFO +1 -1
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/phaserandomization.py +2 -2
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/preparation.py +23 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/utils/stars.py +10 -2
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/version.py +1 -1
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/LICENSE +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/MANIFEST.in +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/README.rst +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/emdbva.egg-info/SOURCES.txt +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/emdbva.egg-info/dependency_links.txt +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/emdbva.egg-info/entry_points.txt +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/emdbva.egg-info/requires.txt +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/emdbva.egg-info/top_level.txt +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/setup.cfg +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/setup.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/__init__.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/mainva.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/__init__.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/bars.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/connected_percentage.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/contour_level_predicator.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/emda_mmcc.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/emringer.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/inclusion.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/overlap_percentage.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/phenix_cc.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/phenix_mm.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/projections.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/qscore.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/residue_locres.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/resmap.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/smoc.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/strudel.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/surfaces.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/metrics/threedfsc.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/qscores.csv +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/utils/Checker.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/utils/ChimeraxViews.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/utils/MapProcessor.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/utils/Model.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/utils/__init__.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/utils/cl_weights.pth +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/utils/log_utils.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/utils/misc.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/utils/rescolor.py +0 -0
- {emdbva-0.0.1.dev131 → emdbva-0.0.1.dev134}/va/validationanalysis.py +0 -0
|
@@ -183,8 +183,8 @@ def calculate_pixels(angpix):
|
|
|
183
183
|
"""
|
|
184
184
|
|
|
185
185
|
if angpix != 0:
|
|
186
|
-
dilatepx = 10
|
|
187
|
-
softpx = 5
|
|
186
|
+
dilatepx = 10 * angpix
|
|
187
|
+
softpx = 5 * angpix
|
|
188
188
|
return dilatepx, softpx
|
|
189
189
|
else:
|
|
190
190
|
print('No hard and soft radius for mask as voxel value is 0.')
|
|
@@ -774,6 +774,29 @@ class PreParation:
|
|
|
774
774
|
if db_name == 'PDB' and accession_code:
|
|
775
775
|
db_info['accession'] = accession_code
|
|
776
776
|
|
|
777
|
+
# Fallback: if no PDB id found in _database_2, try _em_db_reference
|
|
778
|
+
if 'accession' not in db_info:
|
|
779
|
+
em_access = block.find_value('_em_db_reference.access_code')
|
|
780
|
+
em_dbname = block.find_value('_em_db_reference.db_name')
|
|
781
|
+
|
|
782
|
+
# Case 1: _em_db_reference is a single (non-loop) category
|
|
783
|
+
if em_access and str(em_access).strip() not in ('?', '.', ''):
|
|
784
|
+
if em_dbname and str(em_dbname).strip().upper() == 'PDB':
|
|
785
|
+
db_info['PDB'] = str(em_access).strip().strip("'").strip('"')
|
|
786
|
+
|
|
787
|
+
# Case 2: _em_db_reference is looped (multiple references)
|
|
788
|
+
else:
|
|
789
|
+
em_access_col = block.find_loop('_em_db_reference.access_code')
|
|
790
|
+
em_dbname_col = block.find_loop('_em_db_reference.db_name')
|
|
791
|
+
|
|
792
|
+
if em_access_col and em_dbname_col:
|
|
793
|
+
for acc, name in zip(em_access_col, em_dbname_col):
|
|
794
|
+
acc_s = str(acc).strip().strip("'").strip('"')
|
|
795
|
+
name_s = str(name).strip().strip("'").strip('"')
|
|
796
|
+
if name_s.upper() == 'PDB' and acc_s not in ('', '?', '.'):
|
|
797
|
+
db_info['PDB'] = acc_s
|
|
798
|
+
break # take first PDB accession found
|
|
799
|
+
|
|
777
800
|
# Final merge and return
|
|
778
801
|
result = {
|
|
779
802
|
'resolution': resolution,
|
|
@@ -66,10 +66,16 @@ class GetStars:
|
|
|
66
66
|
|
|
67
67
|
def bfactor_sharpen(self):
|
|
68
68
|
"""
|
|
69
|
-
Get the
|
|
69
|
+
Get the B-factor value that Relion is use for the sharpening of the map in postprocess
|
|
70
70
|
"""
|
|
71
71
|
return float(self.data_general_block()['_rlnBfactorUsedForSharpening'])
|
|
72
72
|
|
|
73
|
+
def guinier_correlation(self):
|
|
74
|
+
"""
|
|
75
|
+
Get the correlation value of the Guinier plot
|
|
76
|
+
"""
|
|
77
|
+
return float(self.data_general_block()['_rlnCorrelationFitGuinierPlot'])
|
|
78
|
+
|
|
73
79
|
def data_fsc_block(self):
|
|
74
80
|
"""
|
|
75
81
|
Get the data_fsc block
|
|
@@ -222,6 +228,7 @@ class GetStars:
|
|
|
222
228
|
phase_rand = data_fsc_block.get('CorrectedFourierShellCorrelationPhaseRandomizedMaskedMaps', None)
|
|
223
229
|
randomise_from = self.randomise_from()
|
|
224
230
|
sharpen_bfactor = self.bfactor_sharpen()
|
|
231
|
+
guinier_correlation = self.guinier_correlation()
|
|
225
232
|
|
|
226
233
|
x_gold, y_gold = interpolated_intercept(x, correlation, gold)
|
|
227
234
|
x_half, y_half = interpolated_intercept(x, correlation, half)
|
|
@@ -289,7 +296,8 @@ class GetStars:
|
|
|
289
296
|
'phase_randomized_half': {'x': x_phase_half, 'y': y_phase_half},
|
|
290
297
|
'phase_randomized_halfbit': {'x': x_phase_halfbit, 'y': y_phase_halfbit},
|
|
291
298
|
'randomise_from': randomise_from,
|
|
292
|
-
'sharpen_bfactor': sharpen_bfactor
|
|
299
|
+
'sharpen_bfactor': sharpen_bfactor,
|
|
300
|
+
'guinier_correlation': guinier_correlation
|
|
293
301
|
}
|
|
294
302
|
}
|
|
295
303
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|