1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-11-24 17:19:54 +00:00
nf-configs/conf/prince.config

34 lines
1.4 KiB
Text
Raw Normal View History

def singularityDir = set_singularity_path()
def singularityModule = "singularity/3.2.1"
def squashfsModule = "squashfs/4.3"
2019-04-17 20:59:38 +00:00
params {
config_profile_description = """
NYU prince cluster profile provided by nf-core/configs.
2019-04-17 21:15:16 +00:00
Run from your scratch directory, the output files may be large!
Please consider running the pipeline on a compute node the first time, as it will be pulling the docker image, which will be converted into a singularity image, which is heavy on the login node. Subsequent runs can be done on the login node, as the docker image will only be pulled and converted once. By default the images will be stored in $singularityDir
2019-04-17 20:59:38 +00:00
""".stripIndent()
config_profile_contact = 'Tobias Schraink (@tobsecret)'
config_profile_url = 'https://github.com/nf-core/configs/blob/master/docs/prince.md'
2019-04-17 20:59:38 +00:00
}
singularity {
enabled = true
cacheDir = singularityDir
2019-04-17 20:59:38 +00:00
}
process {
2019-11-26 13:29:52 +00:00
beforeScript = "module load $singularityModule $squashfsModule"
2019-04-17 20:59:38 +00:00
executor = 'slurm'
}
def set_singularity_path() {
def scratch = System.getenv('SCRATCH')
if(scratch == null){
System.err.println("WARNING: prince.config requires the SCRATCH env var to be set.")
return null
} else {
return "$SCRATCH/singularity_images_nextflow"
}
}