Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
cmkobel committed May 6, 2024
1 parent d253d68 commit f17dac9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions asscom2
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ OPTIONS
- fast (Only rules that complete within a few seconds. Useful for testing.)
- isolate (Only rules that are relevant for genomes of isolate origin.)
- meta (Only rules that are relevant for genomes "MAGs" of metagenomic origin.)
- report (Re-renders the report)
- report (Re-renders the report.)
--dry-run
Run a "dry run": Shows what will run without doing it.
Expand Down Expand Up @@ -161,7 +161,7 @@ trailing_arguments = sys.argv[1:]
trailing_arguments_concatenated = " ".join(trailing_arguments)
logger.debug(f"The concatenated trailing arguments are {trailing_arguments_concatenated}")

command = f"snakemake --snakefile \"{ASSCOM2_BASE}\"/workflow/snakefile --profile \"{ASSCOM2_PROFILE}\" --configfile \"{ASSCOM2_BASE}\"/config.yaml " + trailing_arguments_concatenated
command = f"snakemake --snakefile \"{ASSCOM2_BASE}\"/workflow/Snakefile --profile \"{ASSCOM2_PROFILE}\" --configfile \"{ASSCOM2_BASE}\"/config/config.yaml " + trailing_arguments_concatenated
logger.debug(f"Command to run is\n{command}")


Expand Down
5 changes: 1 addition & 4 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,7 @@ report_call = f"""
&& snakemake \
--snakefile "$ASSCOM2_BASE/dynamic_report/workflow/Snakefile" \
--profile "$ASSCOM2_PROFILE" \
--config results_directory="$(pwd -P)/{results_directory}" base_variable="{base_variable}" batch_title="{batch_title}" version_string="{__version__}"
) || (
echo "Info: Not calling the dynamic_report as either the flag or metadata is missing. Run a rule that mandates a report section to generate the report.";
exit 1;
--config results_directory="$(pwd -P)/{results_directory}" base_variable="{base_variable}" batch_title="{batch_title}" version_string="{__version__}"
)
"""

Expand Down

0 comments on commit f17dac9

Please sign in to comment.