Skip to content

Commit

Permalink
markdown source builds
Browse files Browse the repository at this point in the history
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
actions-user committed Aug 4, 2023
1 parent 2db0e5e commit 4f99973
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions files/Snakefile_amdahl_cluster
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"
4 changes: 4 additions & 0 deletions files/Snakefile_cluster
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rule:
input:
output: 'host.txt'
shell: 'hostname > host.txt'
4 changes: 4 additions & 0 deletions files/Snakefile_hello
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'
9 changes: 9 additions & 0 deletions files/Snakefile_tworules
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'

0 comments on commit 4f99973

Please sign in to comment.