mirror of
https://github.com/MillironX/nf-configs.git
synced 2024-11-22 08:29:54 +00:00
add beforescript for sentieon
This commit is contained in:
parent
3e3e2be04b
commit
447b3ee05d
1 changed files with 6 additions and 5 deletions
|
@ -7,6 +7,12 @@ process {
|
||||||
cpus = { check_max( 16 * task.attempt, 'cpus' ) }
|
cpus = { check_max( 16 * task.attempt, 'cpus' ) }
|
||||||
memory = { check_max( 80.GB * task.attempt, 'memory' ) }
|
memory = { check_max( 80.GB * task.attempt, 'memory' ) }
|
||||||
}
|
}
|
||||||
|
withLabel:'sentieon' {
|
||||||
|
beforeScript = { [
|
||||||
|
"export SENTIEON_LICENSE=\$(echo -e \$SENTIEON_LICENSE_BASE64 | base64 -d)",
|
||||||
|
"export PATH=\$PATH:\$SENTIEON_INSTALL_DIR/sentieon-genomics-202010.02/bin"
|
||||||
|
].join(";") }
|
||||||
|
}
|
||||||
withName: BCFTOOLS_VIEW {
|
withName: BCFTOOLS_VIEW {
|
||||||
if (params.genome == 'GRCh37') {
|
if (params.genome == 'GRCh37') {
|
||||||
ext.args = '--output-type v --apply-filters PASS --exclude "INFO/clinical_genomics_mipAF > 0.40 | INFO/swegenAF > 0.40 | INFO/clingen_ngiAF > 0.40 | INFO/gnomad_svAF > 0.40 "'
|
ext.args = '--output-type v --apply-filters PASS --exclude "INFO/clinical_genomics_mipAF > 0.40 | INFO/swegenAF > 0.40 | INFO/clingen_ngiAF > 0.40 | INFO/gnomad_svAF > 0.40 "'
|
||||||
|
@ -20,8 +26,3 @@ process {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
params {
|
|
||||||
|
|
||||||
sentieon_install_dir = "$SENTIEON_INSTALL_DIR/sentieon-genomics-202010.02/bin"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue