-
Notifications
You must be signed in to change notification settings - Fork 356
[WIP] Add the Brain Image Library (BIL) cluster profile #890
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
Open
icaoberg
wants to merge
11
commits into
nf-core:master
Choose a base branch
from
icaoberg:brain-image-library
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9d155b9
Brain Image Library cluster profile
d89a940
Completed additional steps required to push config file to NF repository
ce468c6
Updated config file
1718579
Update docs/brain.md
icaoberg bb16c28
Update docs/brain.md
icaoberg 0e5fe71
Update docs/brain.md
icaoberg 2e8d12d
Merge branch 'master' into brain-image-library
jfy133 e934faf
Merge branch 'master' into brain-image-library
icaoberg e0d033f
Merge branch 'master' into brain-image-library
jfy133 54103d7
Merge branch 'master' into brain-image-library
icaoberg 8eefea0
Merge branch 'master' into brain-image-library
maxulysse 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 hidden or 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 |
|---|---|---|
|
|
@@ -5,3 +5,4 @@ | |
| **/utd_ganymede** @edmundmiller @alyssa-ab | ||
| **/unsw_katana** @jscgh | ||
| **/seadragon** @jiawku | ||
| **/brain** @icaoberg | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -50,6 +50,7 @@ jobs: | |
| - "biohpc_gen" | ||
| - "biowulf" | ||
| - "bluebear" | ||
| - "brain" | ||
| - "cambridge" | ||
| - "cannon" | ||
| - "cbe" | ||
|
|
||
This file contains hidden or 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 hidden or 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,72 @@ | ||
| // ───────────────────────────────────────────────────────────────────────────── | ||
| // Global Parameters | ||
| // ───────────────────────────────────────────────────────────────────────────── | ||
| params { | ||
| config_profile_name = 'Brain Image Library Analysis Ecosystem' | ||
| config_profile_description = 'A public resource enabling researchers to deposit, analyze, mine, share, and interact with large brain image datasets.' | ||
| config_profile_url = 'https://www.brainimagelibrary.org' | ||
| config_profile_contact = 'Ivan Cao-Berg (@icaoberg)' | ||
|
|
||
| // General resource boundaries (used in profile as well) | ||
| max_memory = 2.9.Tb | ||
| max_cpus = 80 | ||
| max_time = 48.h | ||
|
|
||
| // Ignore iGenomes when not needed | ||
| igenomes_ignore = true | ||
| igenomesIgnore = true | ||
| } | ||
|
|
||
| // ───────────────────────────────────────────────────────────────────────────── | ||
| // Singularity Configuration | ||
| // ───────────────────────────────────────────────────────────────────────────── | ||
| singularity { | ||
| enabled = true | ||
| autoMounts = true | ||
| runOptions = ''' | ||
| --home $HOME:/bil/users/$USER \ | ||
| --bind /scratch \ | ||
| --bind /local | ||
| ''' | ||
| } | ||
|
|
||
| // ───────────────────────────────────────────────────────────────────────────── | ||
| // Executor Configuration | ||
| // ───────────────────────────────────────────────────────────────────────────── | ||
| executor { | ||
| queueSize = 10 | ||
| submitRateLimit = '5 sec' | ||
| } | ||
|
|
||
| // ───────────────────────────────────────────────────────────────────────────── | ||
| // Profiles | ||
| // ───────────────────────────────────────────────────────────────────────────── | ||
| profiles { | ||
| compute { | ||
| params { | ||
| config_profile_name = 'BIL - General Computing Partition' | ||
| config_profile_description = 'Brain Image Library Analysis Ecosystem at the Pittsburgh Supercomputing Center' | ||
| config_profile_url = 'https://www.brainimagelibrary.org' | ||
| config_profile_contact = 'Ivan Cao-Berg (@icaoberg)' | ||
| } | ||
|
|
||
| process { | ||
| executor = 'slurm' | ||
| queue = 'compute' | ||
| queueSize = 10 | ||
| clusterOptions = '--qos=normal' | ||
|
|
||
| // Set scratch directory to /local | ||
| scratch = true | ||
| scratchMount = '/local' | ||
|
|
||
| // Default per-process limits | ||
| resourceLimits = [ | ||
| memory: 128.Gb, | ||
| cpus : 16, | ||
| time : 4.h | ||
| ] | ||
| } | ||
| } | ||
| } | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You may want to consider the |
||
This file contains hidden or 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,25 @@ | ||
| # nf-core/configs: Brain Image Library Analysis Ecosystem Configuration | ||
|
|
||
| All nf-core pipelines have been successfully configured for use on the Brain Image Libraryy (BIL) cluster at the Pittsburgh Supercomputing Center. | ||
|
|
||
| To use, run the pipeline with `-profile brain`. This will download and launch the [`brain.config`](../conf/brain.config) which has been pre-configured with a setup suitable for the Brain Image Library (BIL) Analysis Ecosystem. Using this profile, a docker image containing all of the required software will be downloaded, and converted to a Singularity image before execution of the pipeline. | ||
|
|
||
| ## Running the workflow on the Brain Image Library (BIL) Analysis Ecosystem | ||
|
|
||
| Nextflow is not installed by default on the Brain Image Library Analysis Ecosystem. | ||
|
|
||
| - Install Nextflow : [here](https://www.nextflow.io/docs/latest/getstarted.html#) | ||
|
|
||
| Nextflow manages each process as a separate job that is submitted to the cluster by using the `sbatch` command. | ||
|
|
||
| Nextflow shouldin't run directly on a login node but on a compute node. | ||
|
icaoberg marked this conversation as resolved.
Outdated
|
||
|
|
||
| 1. Run nextflow on a compute node with submit host capability: | ||
|
icaoberg marked this conversation as resolved.
Outdated
|
||
|
|
||
| ```bash | ||
| # Run nextflow workflow | ||
| nextflow run \\ | ||
| nf-core/chipseq \\ | ||
| -resume \\ | ||
| -profile test,brain | ||
|
icaoberg marked this conversation as resolved.
Outdated
|
||
| ``` | ||
This file contains hidden or 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.
I this a reason why this is a separate profile - given you have a single entry?
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.
we have multiple partitions but only adding the public at the moment.
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 see - however you don't need a specific profile for a specific partition - you can tell Nextflow to dynamically pick the queue based on whatever variables you want to use rather than having to explicitly request it.
So I would move everything in this
profileinto the base config, and when you need to add additional partitions we can update the profile to be dynamic.