You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/***/.conda/envs/pensa/lib/python3.10/site-packages/Bio/Application/__init__.py:39: BiopythonD
eprecationWarning: The Bio.Application modules and modules relying on it have been deprecated.
Due to the on going maintenance burden of keeping command line application
wrappers up to date, we have decided to deprecate and eventually remove these
modules.
We instead now recommend building your command line and invoking it directly
with the subprocess module.
warnings.warn(
Selection A:
segid R and resnum 59:61 96:130 137:172 181:207 229:274 292:329 335:367
Selection B:
segid R and resnum 59:61 96:130 137:172 181:207 229:274 292:329 335:367
/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/coordinates/PDB.py:777: UserWar
ning: Unit cell dimensions not found. CRYST1 record set to unitary values.
warnings.warn("Unit cell dimensions not found. "
/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/coordinates/PDB.py:1154: UserWa
rning: Found no information for attr: 'altLocs' Using default value of ' '
warnings.warn("Found no information for attr: '{}'"
/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/coordinates/PDB.py:1154: UserWa
rning: Found no information for attr: 'icodes' Using default value of ' '
warnings.warn("Found no information for attr: '{}'"
/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/coordinates/PDB.py:1154: UserWa
rning: Found no information for attr: 'chainIDs' Using default value of ''
warnings.warn("Found no information for attr: '{}'"
/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/coordinates/PDB.py:1154: UserWa
rning: Found no information for attr: 'occupancies' Using default value of '1.0'
warnings.warn("Found no information for attr: '{}'"
/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/coordinates/PDB.py:1154: UserWa
rning: Found no information for attr: 'tempfactors' Using default value of '0.0'
warnings.warn("Found no information for attr: '{}'"
/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/coordinates/PDB.py:1154: UserWa
rning: Found no information for attr: 'elements' Using default value of ' '
warnings.warn("Found no information for attr: '{}'"
/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/coordinates/PDB.py:1154: UserWa
rning: Found no information for attr: 'record_types' Using default value of 'ATOM'
warnings.warn("Found no information for attr: '{}'"
/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/coordinates/PDB.py:1154: UserWa
rning: Found no information for attr: 'formalcharges' Using default value of '0'
warnings.warn("Found no information for attr: '{}'"
/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/coordinates/PDB.py:1201: UserWa
rning: Found missing chainIDs. Corresponding atoms will use value of 'X'
warnings.warn("Found missing chainIDs."
/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/coordinates/GRO.py:479: UserWar
ning: missing dimension - setting unit cell to zeroed box [0., 0., 0.]
warnings.warn(wmsg)
Traceback (most recent call last):
File "/scratch_shared/MOR/clustering1.py", line 37, in <module>
extract_coordinates(ref_file_b, pdb_file_b, trj_file_b, out_name_b+"_tm", sel_string_b)
File "/home/***/.conda/envs/pensa/lib/python3.10/site-packages/pensa/preprocessing/coordinates.py
", line 48, in extract_coordinates
u = mda.Universe(top, trj)
File "/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/core/universe.py", line
436, in __init__
self.load_new(coordinates, format=format, in_memory=in_memory,
File "/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/core/universe.py", line
665, in load_new
self.trajectory = reader(filename, format=format, **kwargs)
File "/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/lib/util.py", line 2562
, in wrapper
return func(self, *args, **kwargs)
File "/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/coordinates/XDR.py", li
ne 148, in __init__
self._xdr = self._file(self.filename)
File "MDAnalysis/lib/formats/libmdaxdr.pyx", line 135, in MDAnalysis.lib.formats.libmdaxdr._XDRFi
le.__cinit__
File "MDAnalysis/lib/formats/libmdaxdr.pyx", line 194, in MDAnalysis.lib.formats.libmdaxdr._XDRFi
le.open
OSError: File does not exist: b'/scratch_shared/MOR/prod4/output4.xtc'
Exception ignored in: <function ReaderBase.__del__ at 0x7f0d78c93e20>
Traceback (most recent call last):
File "/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/coordinates/base.py", l
ine 1531, in __del__
self.close()
File "/home/***/.conda/envs/pensa/lib/python3.10/site-packages/MDAnalysis/coordinates/XDR.py", li
ne 186, in close
self._xdr.close()
AttributeError: 'XTCReader' object has no attribute '_xdr'
In the past I had this issue too using MDAnalysis AttributeError: 'XTCReader' object has no attribute '_xdr' but I was able to fix it doing this
u = mda.Universe(data.TPR, data.XTC, refresh_offsets=True)
Is there a way to fix this in PENSA? Or I messed up somehting for clustering the MD?
It looks like the error appears in extract_coordinates(), i.e., during preprocessing, so it's not a clustering problem.
Are you sure the xtc file exists? The error message also says:
OSError: File does not exist: b'/scratch_shared/MOR/prod4/output4.xtc'
Is this something that occurs with the particular trajectory format you use? If you think loading this format requires the option refresh_offsets=True, you can try the following quick fix:
Define your own version of the function extract_coordinates() by copying the definition from here: https://github.com/drorlab/pensa/blob/master/pensa/preprocessing/coordinates.py
Add the option refresh_offsets=True to the two calls of mda.Universe() in your new function and replace extract_coordinates() with it in your script.
Please let me know how things go (even if it works) so I can think about how to improve this part of PENSA.
Thanks for your fast response! You were right—the issue was simply that the xtc file didn’t exist (too much hours in front of computer :)) . Apologies for the oversight, and thanks ahain your help!
Hi,
Im trying to compare and cluster 2 replicates with PENSa.
The code that I am using is the following one
In the past I had this issue too using MDAnalysis
AttributeError: 'XTCReader' object has no attribute '_xdr'
but I was able to fix it doing thisu = mda.Universe(data.TPR, data.XTC, refresh_offsets=True)
Is there a way to fix this in PENSA? Or I messed up somehting for clustering the MD?
Im using the following environment
Thanks in advacne!
The text was updated successfully, but these errors were encountered: