-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New config profile KAUST #809
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
313691a
New config profile for KAUST
husensofteng f4fba5d
minor fix to kaust-docs
husensofteng b8efcfa
removed workdir flag in config
husensofteng 4dd73c3
fixed typo
husensofteng 7298069
formatting
husensofteng 7aef2e9
Merge branch 'master' into master
husensofteng 85c1a31
docs update
husensofteng feecc08
fix docs
husensofteng 6b55deb
updated docs
husensofteng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -102,6 +102,7 @@ jobs: | |
- "jex" | ||
- "unsw_katana" | ||
- "ku_sund_danhead" | ||
- "kaust" | ||
- "leicester" | ||
- "lugh" | ||
- "m3c" | ||
|
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// KAUST Config Profile | ||
params { | ||
config_profile_name = 'KAUST' | ||
config_profile_description = 'Profile for use on King Abdullah Univesity of Science and Technology (KAUST) Ibex Cluster.' | ||
config_profile_contact = 'Husen Umer (@kaust.edu.sa)' | ||
config_profile_url = 'https://docs.hpc.kaust.edu.sa/quickstart/ibex.html' | ||
save_reference = false | ||
igenomes_ignore = true | ||
} | ||
|
||
// Load genome resources and assets hosted by the Bioinformatics team on IBEX cluster | ||
includeConfig '/biocorelab/BIX/resources/configs/genomes.yaml' | ||
|
||
singularity { | ||
enabled = true | ||
autoMounts = true | ||
pullTimeout = '60 min' | ||
// Use existing images from the centralized library, if available | ||
libraryDir = "/biocorelab/BIX/resources/singularity/images/" | ||
// Download images that are missing from the library to user space | ||
cacheDir = "/home/$USER/.singularity/nf_images/" | ||
} | ||
|
||
process { | ||
executor = 'slurm' | ||
clusterOptions = "-p batch" | ||
maxRetries = 5 | ||
errorStrategy = { task.exitStatus in [143,137,104,134,139,151,140,247,12] ? 'retry' : 'finish' } | ||
beforeScript = 'module load singularity' | ||
// Max allowed resources per process on Ibex | ||
resourceLimits = [ | ||
memory: 1600.GB, | ||
cpus: 200, | ||
time: 10.d | ||
] | ||
} | ||
|
||
process { | ||
|
||
withLabel:process_single { | ||
time = 20.h | ||
} | ||
|
||
withLabel:process_low { | ||
cpus = { 4 * task.attempt } | ||
memory = { 16.GB * task.attempt } | ||
time = { 6.h * task.attempt } | ||
} | ||
|
||
withLabel:process_medium { | ||
cpus = { 20 * task.attempt } | ||
memory = { 96.GB * task.attempt } | ||
time = { 12.h * task.attempt } | ||
} | ||
|
||
withLabel:process_high { | ||
cpus = { 40 * task.attempt } | ||
memory = { 256.GB * task.attempt } | ||
time = { 20.h * task.attempt } | ||
} | ||
|
||
withLabel:process_long { | ||
cpus = { 12 * task.attempt } | ||
memory = { 128.GB * task.attempt } | ||
time = { 96.h * task.attempt } | ||
} | ||
} |
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,43 @@ | ||
# nf-core/configs: KAUST Configuration | ||
|
||
manage the pipeline jobs via the nf-core/configs: KAUST Configuration | ||
|
||
The purpose of this custom configurations is to streamline executing nf-core pipelines on the KAUST Ibex cluster. | ||
|
||
## Getting help | ||
|
||
We have a wiki page dedicated to the Bioinformatics team at KAUST to help users: [Bioinformatics Workflows](https://bclwiki.kaust.edu.sa/en/bix/analysis/public/bioinformatics-workflows). | ||
|
||
## Using the KAUST config profile | ||
|
||
The recommended way to activate `Nextflow`, that is needed to run the `nf-core` workflows on Ibex, | ||
is to use the [module system](https://docs.hpc.kaust.edu.sa/soft_env/prog_env/modulesystem/basic_commands.html): | ||
|
||
```bash | ||
# Log in to the desired cluster | ||
ssh <USER>@ilogin.kaust.edu.sa | ||
|
||
# Activate the modules, you can also choose to use a specific version with e.g. `Nextflow/24.04.4`. | ||
module load nextflow | ||
``` | ||
|
||
Launch the pipeline with `-profile kaust` (one hyphen) to run the workflows using the KAUST profile. | ||
This will download and launch the [`kaust.config`](../conf/kaust.config) which has been pre-configured with a setup suitable for the KAUST servers. | ||
It will enable `Nextflow` to manage the pipeline jobs via the `Slurm` job scheduler and `Singularity` to run the tasks. | ||
Using the KAUST profile, `Docker` image(s) containing required software(s) will be downloaded, and converted to `Singularity` image(s) if needed before execution of the pipeline. To avoid downloading same images by multiple users, we provide a singularity `libraryDir` that is configured to use images already downloaded in our central container library. Images missing from our library will be downloaded to your home directory path as defined by `cacheDir`. | ||
|
||
The KAUST profile makes running the nf-core workflows as simple as: | ||
|
||
```bash | ||
|
||
module load nextflow | ||
module load singularity | ||
|
||
# Launch nf-core pipeline with the kaust profile, e.g. for analyzing human data: | ||
$ nextflow run nf-core/<PIPELINE> -profile kaust -r <PIPELINE_VERSION> --genome GRCh38.p14 --samplesheet input.csv [...] | ||
``` | ||
|
||
Where `input_csv` contains information about the samples and datafile paths. | ||
|
||
Remember to use `-bg` to launch `Nextflow` in the background, so that the pipeline doesn't exit if you leave your terminal session. | ||
Alternatively, you can also launch `Nextflow` in a `tmux` or a `screen` session. |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jfy133 the profile does not recognize this statement, do you you have any suggestion how to make it work?
The purpose is to host a custom set of genome resources (similar to igenomes but locally maintained).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think users would have to specify it with a custom config i.e. with
-c
... @maxulysse any ideas?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortauntely this is breaking other pipeliens, so I'm commenting it out ofr now here: #810