This function loads the timeseries information for clusters from a plain text file and stores them in a list. The trajectories can be named by the user.
lengths: Mandatory vector holding the number of snapshots for the respective trajectories (e.g. when three trajectories of 3000 snapshots each have been analysed together: lengths = c(3000,3000,300)).
names: Optional vector of trajectory names. If provided, needs to be of the same length as the number of clusters to be plotted.
mdEngine: Argument distinguishes between input formats based on the molecular dynamics engine used. Currently available: "GROMOS", "GROMACS" and "AMBER".
Returns
Returns a list of name-cluster lists, which consist of: - [1]: Trajectory name.
[2]: Vector of cluster numbers, where 0 indicates a structure not belonging to a cluster specified.