Warning

This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

Source code for galaxy.model.dataset_collections.types.list

from galaxy.model import DatasetCollectionElement
from ..types import BaseDatasetCollectionType


[docs]class ListDatasetCollectionType(BaseDatasetCollectionType): """A flat list of named elements.""" collection_type = "list"
[docs] def __init__(self): pass
[docs] def generate_elements(self, elements): for identifier, element in elements.items(): association = DatasetCollectionElement( element=element, element_identifier=identifier, ) yield association