flowcraft/generator/inspect.py
def _prepare_static_info(self):
        """Prepares the first batch of information, containing static
        information such as the pipeline file, and configuration files

        Returns
        -------
        dict
            Dict with the static information for the first POST request
        """

        pipeline_files = {}

        with open(join(self.workdir, self.pipeline_name)) as fh:
            pipeline_files["pipelineFile"] = fh.readlines()

        nf_config = join(self.workdir, "nextflow.config")
        if os.path.exists(nf_config):
            with open(nf_config) as fh:
                pipeline_files["configFile"] = fh.readlines()

        # Check for specific flowcraft configurations files
        configs = {
            "params.config": "paramsFile",
            "resources.config": "resourcesFile",
            "containers.config": "containersFile",
            "user.config": "userFile",
        }
        for config, key in configs.items():
            cfile = join(self.workdir, config)
            if os.path.exists(cfile):
                with open(cfile) as fh:
                    pipeline_files[key] = fh.readlines()

        return pipeline_files
def _prepare_static_info(self):
        """Prepares the first batch of information, containing static
        information such as the pipeline file, and configuration files

        Returns
        -------
        dict
            Dict with the static information for the first POST request
        """

        pipeline_files = {}

        with open(join(self.workdir, self.pipeline_name)) as fh:
            pipeline_files["pipelineFile"] = fh.readlines()

        nf_config = join(self.workdir, "nextflow.config")
        if os.path.exists(nf_config):
            with open(nf_config) as fh:
                pipeline_files["configFile"] = fh.readlines()

        # Check for specific flowcraft configurations files
        configs = {
            "params.config": "paramsFile",
            "resources.config": "resourcesFile",
            "containers.config": "containersFile",
            "user.config": "userFile",
        }
        for config, key in configs.items():
            cfile = join(self.workdir, config)
            if os.path.exists(cfile):
                with open(cfile) as fh:
                    pipeline_files[key] = fh.readlines()

        return pipeline_files
def _prepare_static_info ( self ) : pipeline_files = { } with open ( join ( self . workdir , self . pipeline_name ) ) as fh : pipeline_files [ "pipelineFile" ] = fh . readlines ( ) nf_config = join ( self . workdir , "nextflow.config" ) if os . path . exists ( nf_config ) : with open ( nf_config ) as fh : pipeline_files [ "configFile" ] = fh . readlines ( ) # Check for specific flowcraft configurations files configs = { "params.config" : "paramsFile" , "resources.config" : "resourcesFile" , "containers.config" : "containersFile" , "user.config" : "userFile" , } for config , key in configs . items ( ) : cfile = join ( self . workdir , config ) if os . path . exists ( cfile ) : with open ( cfile ) as fh : pipeline_files [ key ] = fh . readlines ( ) return pipeline_files
Prepares the first batch of information, containing static
        information such as the pipeline file, and configuration files

        Returns
        -------
        dict
            Dict with the static information for the first POST request
Prepares the first batch of information containing static information such as the pipeline file and configuration files