-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a WIP because there is a bug #24 with what looks to be the google storage plugin installed. Ping @johanneskoester I need to get #24 fixed before can proceed with more features here. Happy New Year! --------- Signed-off-by: vsoch <[email protected]> Co-authored-by: vsoch <[email protected]> Co-authored-by: Johannes Köster <[email protected]>
- Loading branch information
1 parent
2951454
commit d6913a1
Showing
9 changed files
with
100 additions
and
53 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
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 |
---|---|---|
|
@@ -331,4 +331,4 @@ rule hello_world: | |
googlebatch_snippets="mpi,myscript.sh" | ||
shell: | ||
"..." | ||
``` | ||
``` |
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,6 @@ | ||
# Snakemake Google Batch Examples | ||
|
||
- [hello-world](hello-world): The most basic hello world example with multiple langauges | ||
- [hello-world-intel-mpi](hello-world-intel-mpi): Run an example MPI job to calculate Pi with intel MPI | ||
- [hello-world-cos](hello-world-cos): The same using the container operating system (COS) | ||
- [hello-world-preemption](hello-world-preemption): Example asking for preemptible jobs for all rules. |
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 @@ | ||
# Hello World | ||
|
||
> with preemtible instances | ||
Here is an example specifying to use an s3 bucket and asking for preemptible instances. | ||
|
||
```bash | ||
snakemake --jobs 1 --executor googlebatch --googlebatch-region us-central1 --googlebatch-project llnl-flux --default-storage-provider s3 --default-storage-prefix s3://snakemake-testing-llnl --preemptible-rules | ||
``` |
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,19 @@ | ||
# By convention, the first pseudorule should be called "all" | ||
# We're using the expand() function to create multiple targets | ||
rule all: | ||
input: | ||
expand( | ||
"{greeting}/world.txt", | ||
greeting = ['hello', 'hola'], | ||
), | ||
|
||
# First real rule, this is using a wildcard called "greeting" | ||
rule multilingual_hello_world: | ||
output: | ||
"{greeting}/world.txt", | ||
shell: | ||
""" | ||
mkdir -p "{wildcards.greeting}" | ||
sleep 5 | ||
echo "{wildcards.greeting}, World!" > {output} | ||
""" |
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,12 @@ | ||
#!/bin/bash | ||
|
||
url=$1 | ||
|
||
tmp=$(mktemp -d -t snek-install-XXXX) | ||
rm -rf ${tmp} | ||
|
||
git clone --depth 1 ${url} ${tmp} | ||
cd ${tmp} | ||
/opt/conda/bin/python -m pip install . | ||
cd - | ||
rm -rf ${tmp} |
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
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
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