-
Notifications
You must be signed in to change notification settings - Fork 287
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
Adds unity profile config/docs #821
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a9e03c0
Initial commit of unity.config
baldikacti 34e7944
Merge branch 'nf-core:master' into master
baldikacti 666aa36
Adds institutional configs and docs for Unity HPC final version.
baldikacti ba0431b
Fixes lint errors
baldikacti 4fbdd33
Fixes lint error on line 28
baldikacti c7b0a78
Update docs/unity.md
baldikacti 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 |
---|---|---|
|
@@ -153,6 +153,7 @@ jobs: | |
- "ucd_sonic" | ||
- "uge" | ||
- "unibe_ibu" | ||
- "unity" | ||
- "unc_lccc" | ||
- "unc_longleaf" | ||
- "uod_hpc" | ||
|
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,51 @@ | ||
/* | ||
* ------------------------------------------------- | ||
* Unity HPC cluster config file for nf-core | ||
* ------------------------------------------------- | ||
* https://unity.rc.umass.edu/ | ||
*/ | ||
|
||
params { | ||
config_profile_description = 'Unity HPC cluster profile provided by nf-core/configs.' | ||
config_profile_contact = 'Berent Aldikacti (@baldikacti)' | ||
config_profile_url = 'https://unity.rc.umass.edu/' | ||
|
||
igenomes_base = '/datasets/bio/igenomes' | ||
|
||
max_memory = 2.TB | ||
max_cpus = 192 | ||
max_time = 14.d | ||
} | ||
|
||
process { | ||
resourceLimits = [ | ||
cpus: 192, | ||
memory: 2.TB, | ||
time: 14.d | ||
] | ||
executor = 'slurm' | ||
|
||
// Selects partition based on process time | ||
queue = { task.time <= 2.h ? 'cpu-preempt' : 'cpu' } | ||
clusterOptions = { "${task.time >= 48.h ? '-q long' : ''}" } | ||
|
||
maxRetries = 2 | ||
|
||
} | ||
|
||
// Limits job submission to 1000 consecutive run and 20 submissions per second | ||
executor { | ||
queueSize = 1000 | ||
submitRateLimit = '20sec' | ||
pollInterval = '30sec' | ||
queueStatInterval = '1min' | ||
} | ||
|
||
apptainer { | ||
enabled = true | ||
autoMounts = true | ||
pullTimeout = '120m' | ||
} | ||
|
||
// clean the generated files in the working directory | ||
cleanup = true |
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,29 @@ | ||
# nf-core/configs: Unity HPC Configuration | ||
|
||
All nf-core pipelines have been successfully configured for use on the Unity HPC. | ||
|
||
To use, run the pipeline with `-profile unity`. This will download and launch the [`unity.config`](../conf/unity.config) which has been pre-configured with a setup suitable for the UNITY cluster. Using this profile, an Apptainer image containing all of the required software will be downloaded, and converted to an Apptainer image before execution of the pipeline. | ||
|
||
## Running the pipeline | ||
|
||
Before running the pipeline you will need to load Nextflow and Apptainer using the environment module system on UNITY CLUSTER. You can do this by issuing the commands below: | ||
|
||
```bash | ||
## Load Nextflow and Apptainer environment modules | ||
module purge | ||
module load nextflow/24.04.3 | ||
module load apptainer/latest | ||
|
||
nextflow run <pipeline_name> -profile unity | ||
``` | ||
|
||
Apptainer module will look for a cache directory with the name `.apptainer/cache` in your `/home` or `/work` directory. Please create the cache directory in `/work/pi_<pi_name>/.apptainer/cache` or `/work/pi_<pi_name>/<username>/.apptainer/cache` to prevent apptainer filling your HOME directory. | ||
|
||
## iGenome database | ||
|
||
A local copy of the iGenomes resource has been made available on UNITY CLUSTER so you should be able to run a pipeline supporting this against any reference available in the `igenomes.config` specific to the nf-core pipeline. | ||
You can do this by simply using the `--genome <GENOME_ID>` parameter. | ||
|
||
:::note | ||
You will need an account to use the HPC cluster on UNITY CLUSTER in order to run the pipeline. If in doubt contact `[email protected]`. | ||
::: |
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.
You could also use the NXF_SINGULARITY_CACHEDIR and NXF_SINGULARITY_LIBRARYDIR variables to point to this instead.