Skip to content

Commit

Permalink
BugFix: Addresses chr mismatch issue for ASCAT
Browse files Browse the repository at this point in the history
  • Loading branch information
tanubrata committed Feb 9, 2024
1 parent 97e43cf commit 306ecfc
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 4 deletions.
46 changes: 46 additions & 0 deletions bigpurple.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

params {
config_profile_name = 'mskilab-org NYU BigPurple Cluster Profile'
config_profile_description = """
mskilab-org NYU School of Medicine BigPurple cluster profile to run nf-JaBbA.
!!Make sure to load both singularity/3.1 and squashfs-tools/4.3 before running nf-JaBbA with this profile!!
Ideal to make work folder on scratch as it generates whole lot of temporary files to run the pipeline
Make sure to submit the run as an SBATCH job since we don't own our own node at NYU yet!!
""".stripIndent()
config_profile_contact = "Tanubrata Dey ([email protected])"
config_profile_url = "https://www.mskilab.org/"

// Resources
max_memory = 700.GB
max_cpus = 256
max_time = 10.d
}
process {

// default SLURM node config
beforeScript = """
module load singularity/3.9.8
module load squashfs-tools/4.3
"""
.stripIndent()

executor='slurm'

// memory errors which should be retried. otherwise error out
errorStrategy = { task.exitStatus in ((130..145) + 104) ? 'retry' : 'finish' }
maxRetries = 3
maxErrors = '-1'

}
executor {
name = 'slurm'
queueSize = 500
submitRateLimit = '10 sec'
}
singularity {
enabled = true
autoMounts = true
cacheDir = "/gpfs/data/imielinskilab/singularity_files/nextflow_singularity_cache"
}

1 change: 1 addition & 0 deletions bin/ascat_seg.R
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@

if (grepl(pattern = "txt$", x = opt$variants)) {
variants.dt = fread(opt$variants)
variants.dt[[1]] <- gsub("chr","",variants.dt[[1]])
variants.dt[, ":="(alt.count.n = as.numeric(as.character(alt.count.n)),
ref.count.n = as.numeric(as.character(ref.count.n)),
alt.count.t = as.numeric(as.character(alt.count.t)),
Expand Down
4 changes: 2 additions & 2 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ process {
}
withName: 'SVABA' {
cpus = 4
memory = { check_max( 4.GB * task.attempt, 'memory' ) }
memory = { check_max( 72.GB * task.attempt, 'memory' ) }
time = 84.h
}
withName: 'GRIDSS' {
cpus = { check_max( 8 * task.attempt, 'cpus' ) }
cpus = { check_max( 4 * task.attempt, 'cpus' ) }
memory = { check_max( 72.GB * task.attempt, 'memory' ) }
time = 84.h
}
Expand Down
4 changes: 2 additions & 2 deletions modules/local/jabba/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ process JABBA {
label 'process_high'

container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'/gpfs/commons/home/tdey/lab/singularity_files/nextflow_singularity_cache/mskilab-jabba_cplex-latest.img':
'mskilab/jabba:latest' }"
'docker://mskilab/jabba_cplex:latest':
'mskilab/jabba_cplex:latest' }"

input:
tuple val(meta), path(cov_rds)
Expand Down

0 comments on commit 306ecfc

Please sign in to comment.