Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Generate Output File Locations #54

Open
markmcdowall opened this issue Nov 2, 2018 · 0 comments
Open

Auto Generate Output File Locations #54

markmcdowall opened this issue Nov 2, 2018 · 0 comments
Assignees

Comments

@markmcdowall
Copy link
Member

At the moment the location of the output files and the names of the files need to be specified in the config.json file. From the VRE perspective that can mean that the names are very bland and difficult to use when files have the same name and visualising this in JBrowse.

This needs a small change in the pipelines to add a test for if the name has been generated already, if not then auto-generate the name based on the execution parameter and the name of the input file.

tool_output_list = {}
if output_files["output_file_1"]:
    tool_output_list["output_file_1"] = output_files["output_file_1"]
else:
    tool_output_list["output_file_1"] = os.path.join(
        self.configuration["execution"],
        input_files["input_file_1"].replace("fastq", "bam")
    )

This will need to be done at the pipeline/workflow level as it is at this level that the management of files is performed. Tools should not define the output files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant