'Init-like method that returns state of dataset\'s converted datasets.
Returns valid chroms for that dataset as well.'

def _converted_datasets_state(self, trans, dataset, chrom=None, retry=False):

    msg = self.hda_manager.data_conversion_status(dataset)
    if msg:
        return msg
    data_sources = dataset.get_datasources(trans)
    messages_list = [data_source_dict['message'] for data_source_dict in data_sources.values()]
    msg = self._get_highest_priority_msg(messages_list)
    if msg:
        if retry:
            dataset.clear_associated_files()
            return self._converted_datasets_state(trans, dataset, chrom)
        else:
            return msg
    if chrom:
        data_provider = trans.app.data_provider_registry.get_data_provider(trans, original_dataset=dataset, source='index')
        if (not data_provider.has_data(chrom)):
            return dataset.conversion_messages.NO_DATA
    return {'status': dataset.conversion_messages.DATA, 'valid_chroms': None}
