Snakemake: use && or || to concat CMDs in rules
If a rule has multiple CMDs use &&
or ||
to concatenate them (if appropriate)
# execute cmd1
# if cmd1 fails execute cmd2 otherwise cmd2 is not executed
cmd1 || cmd2
# execute cmd1
# if cmd1 succeeds execute cmd2 otherwise cmd2 is not executed
cmd1 && cmd2