Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
alefisico committed Nov 13, 2024
1 parent 132ec6a commit 581d302
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions episodes/Snakemake.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,18 @@ rule analyze_data:
### Running snakemake

Load your environment or container to launch snakemake. Then to run the simple example:
```
```BASH
snakemake --snakefile Snakefile --configfile config.yaml --dry-run
```

:::::::::::::::::::::::::::OUTPUT
Each part of this command serves a specific purpose:
* `--snakefile`: This flag specifies the path to the Snakefile, which contains the definitions of the rules and their dependencies.
* `--configfile`: This flag indicates the path to the configuration file (YAML format) where you can define parameters and variables that can be used within the Snakefile. (It is not mandatory.)
* `--dry-run`: This flag tells Snakemake to simulate the workflow execution without actually running the commands. It's useful for visualizing the execution order of rules and identifying potential issues before running the actual workflow.


::::::::::::::::::::::::::: OUTPUT

Check warning on line 143 in episodes/Snakemake.md

View workflow job for this annotation

GitHub Actions / Build Full Site

[unknown div] OUTPUT
Config file config.yaml is extended by additional config specified via the command line.
host: cmslpc305.fnal.gov
Building DAG of jobs...
Job stats:
job count
Expand Down Expand Up @@ -265,14 +270,15 @@ Reasons:
analyze_data, simulate_data

This was a dry-run (flag -n). The order of jobs does not reflect the order of execution.
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::


Each part of this command serves a specific purpose:
* `--snakefile`: This flag specifies the path to the Snakefile, which contains the definitions of the rules and their dependencies.
* `--configfile`: This flag indicates the path to the configuration file (YAML format) where you can define parameters and variables that can be used within the Snakefile. (It is not mandatory.)
* `--dry-run`: This flag tells Snakemake to simulate the workflow execution without actually running the commands. It's useful for visualizing the execution order of rules and identifying potential issues before running the actual workflow.

::::::::::::::::::::::::::CALLOUT

Check warning on line 277 in episodes/Snakemake.md

View workflow job for this annotation

GitHub Actions / Build Full Site

[unknown div] CALLOUT

fjdskflsdjklfdas

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


## More about wildcards
Expand Down

0 comments on commit 581d302

Please sign in to comment.