INNER CODE UNIT · Python

check_match

nf-core/tools · nf_core/modules/lint/__init__.py:355

            def check_match(element: dict) -> dict | None:
                key = list(element.keys())[0]
                return element[key] if normalized_element_name == unquote(key) else None

            # Handle list structure (inputs)
            if isinstance(meta_yml, list):
                for channel in meta_yml:
                    if isinstance(channel, list):
                        for element in channel:
                            if (result := check_match(element)) is not None:
                                return result
                    elif isinstance(channel, dict) and (result := check_match(channel)) is not None:
                        return result

            # Handle dict structure (outputs/topics)
            elif isinstance(meta_yml, dict):
                for channels in meta_yml.values():
                    for channel in channels:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…