generated from carpentries/workbench-template-rmd
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-generated via {sandpaper} Source : c6ba6d1 Branch : main Author : Trevor Keller <[email protected]> Time : 2023-08-04 15:02:27 +0000 Message : Merge pull request #10 from carpentries-incubator/snakefiles Draft example snakefiles.
- Loading branch information
1 parent
2db0e5e
commit 4f99973
Showing
4 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
rule one: | ||
input: | ||
output: 'amdahl_cluster.txt' | ||
resources: | ||
mpi="mpirun", | ||
tasks=3 | ||
shell: | ||
"module load OpenMPI; mpirun -np {resources.tasks} amdahl > amdahl_cluster.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
rule: | ||
input: | ||
output: 'host.txt' | ||
shell: 'hostname > host.txt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
rule: | ||
input: | ||
output: 'hello.txt' | ||
shell: 'echo "Hello there, world!" >> hello.txt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
rule last: | ||
input: 'lower.txt' | ||
output: 'upper.txt' | ||
shell: 'cat lower.txt | tr a-z A-Z > upper.txt' | ||
|
||
rule first: | ||
input: | ||
output: 'lower.txt' | ||
shell: 'echo "Hello, world!" > lower.txt' |