def read_pdb(filename):
    """
    From a given path to a pdb file, return a list of lines containing
    atom data

    :param filename: directory to pdb file
    :return: suscriptable collection of atom data
    """

    # Read in file
    with open(filename,'r') as f:

        # Read lines from file
        flines = []
        for lines in f:
            flines.append(lines)

    # Close file (be kind rewind)

    # Initiate suscriptable collection to store atom data
    atom_data = []

    # Iterate over line data
    for line in flines:

        # Split the lines
        if "ATOM " in line:
            atom_data.append(line.split())

    # print (len(atom_data), atom_data[-1])

    # Return subscriptable collection
    return atom_data