Hi everyone,
I am trying to the extract trajectories of certain atoms and this trajectory should not have any periodic boundary condition effect.
People who use GROMACS, its similar to "gmx trjconv -f test.xtc -pbc nojump -n index.ndx -o nopbc.xtc". I have written the following code to achieve this but still my trajectory seem to have pbc enabled. What could be the possible problem with the code ?
mda.core.flags['use_periodic_selections'] = False
mda.core.flags['use_KDTree_routines'] = True
u=mda.Universe("test.pdb","semifinal.dcd")
phosphate_0=u.atoms.select_atoms("name P")
protein_0=u.atoms.select_atoms("protein and name CA")
phosphate_protein_0=u.atoms.select_atoms("protein and name CA or name P")
phosphate_protein_0.write("output.pdb")
with mda.Writer("output.dcd", phosphate_protein_0.n_atoms) as W:
for ts in u.trajectory:
W.write(phosphate_protein_0)