INNER CODE UNIT · Python

update_meta_yml_file

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

    def update_meta_yml_file(self, mod):
        """
        Update the meta.yml file with the correct inputs, outputs, topics and containers
        """
        meta_yml = self.read_meta_yml_patched(mod)
        if meta_yml is None:
            log.warning(f"Could not read meta.yml for {mod.component_name}, skipping update")
            return
        corrected_meta_yml = meta_yml.copy()

        def _find_meta_info(meta_yml: dict, element_name: str, is_output=False) -> dict:
            """Find the information specified in the meta.yml file to update the corrected meta.yml content

            Note: element_name may contain quotes (e.g., '"*.html"', "'bpipe'") from parsing main.nf,
            but meta.yml keys don't include the quotes. We normalize both for comparison
            by removing paired quotes (both single and double).
            """
            # Remove paired quotes (single or double) from element name for comparison

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…