DCD and PDB file analysis functions