'Set the number of significant components in the Ks distribution.
The dataset will always be on the order of less than 10 lines.'

def set_meta(self, dataset, **kwd):

    super(PlantTribesKsComponents, self).set_meta(dataset, **kwd)
    significant_components = []
    with open(dataset.file_name) as fh:
        for (i, line) in enumerate(fh):
            if (i == 0):
                continue
            line = line.strip()
            items = line.split()
            try:
                significant_components.append(int(items[2]))
            except Exception:
                continue
    if (len(significant_components) > 0):
        dataset.metadata.number_comp = max(significant_components)
