Brilliant; thank you for the help. I'm giving it a try now, but I still have a very basic understanding of MDAnalysis, and it's causing a bit of struggling with deciphering return types and argument types from examples.
Firstly, the topology order is correct (do people make topologies out of order?! I would love to know for my education reasons why this could happen). I tried the code across the four chain fragments (enzyme, x3 collagen peptides), but MDAnalysis threw an error about each chain being a different length.
So I'm now just trying it out on one of the collagen peptides, but my understanding of the MDAnalysis data types gets a bit sketchy. I'm getting the error: TypeError: object of type 'Atom' has no len() for the code:
from MDAnalysis.analysis import polymer
MMP1_BACKBONE_ATOMS = "index 0:5820 and backbone"
topologyFile = "C:/Users/yewro/Documents/MINES_LECTURES/test_topology.pdb"
trajectoryFile = "C:/Users/yewro/Documents/MINES_LECTURES/test_trajectory.trr"
universe = mda.Universe(topologyFile, trajectoryFile)
backbone = universe.select_atoms(MMP1_BACKBONE_ATOMS)
backbone = backbone.select_atoms("name CA C N")
persistenceLength = polymer.PersistenceLength(backbone)
persistenceLength.run()
print(persistenceLength.result)
Thanks
Anthony