-
Notifications
You must be signed in to change notification settings - Fork 91
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
Multi-Model b_factor
currently not available
#128
Comments
When importing via MDAnalysis, As noted in this comment MDAnalysis/mdanalysis#3825 (comment) you can get timestep-specific data from the import MDAnalysis as mda
u = mda.Universe('traj.pdb')
for ts in u.trajectory:
print(ts.data['occupancy']) Should be able to add this to the MDAnalysis import for each timestep creation. |
Works well. Added here: 26a8c41 Tested with the below data:
Able to get interpolating Potential to add a field to the original |
Was also able to get it working via adding the following code for biotite import: def pdb_get_b_factors(file):
b_factors = []
for model in range(file.get_model_count()):
atoms = file.get_structure(model = model + 1, extra_fields = ['b_factor'])
b_factors.append(atoms.b_factor)
return b_factors Which was suggested in the biotite issue. Was able to get import working properly. Will try and implement more robustly. |
While previously using
atomium
for parsing,b_factor
on a per-model basis was available.With the switch to
Biotite
, this is currently not available andb_factor
is now taken from the first model and used for all other models as well.The issue is raised here and a fix will hopefully be coming when new functionality is added
Biotite
.The text was updated successfully, but these errors were encountered: