Warning

This document is for an old release 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.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