Skip to content

Commit

Permalink
Merge pull request #112 from tkchafin/spoof_ref_path
Browse files Browse the repository at this point in the history
spoof REF_PATH to disallow remote lookup for cram
  • Loading branch information
tkchafin authored Sep 10, 2024
2 parents ce55421 + b67459c commit 6c6505d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

process {
withName: SAMTOOLS_FASTQ {
beforeScript = { "export REF_PATH=spoof"}
ext.args = '-F 0x200 -nt'
}

Expand All @@ -24,6 +25,7 @@ process {
}

withName: SAMTOOLS_MERGE {
beforeScript = { "export REF_PATH=spoof"}
ext.args = { "-c -p" }
ext.prefix = { "${meta.id}.merge" }
}
Expand All @@ -35,6 +37,7 @@ process {
}

withName: SAMTOOLS_COLLATETOFASTA {
beforeScript = { "export REF_PATH=spoof"}
ext.args = { (params.use_work_dir_as_temp ? "-T." : "") }
}

Expand All @@ -43,6 +46,7 @@ process {
}

withName: SAMTOOLS_CONVERT {
beforeScript = { "export REF_PATH=spoof"}
ext.args = "-be '[rq]>=0.99' -x fi -x fp -x ri -x rp --write-index"
}

Expand All @@ -64,6 +68,7 @@ process {
}

withName: '.*:CONVERT_STATS:SAMTOOLS_CRAM' {
beforeScript = { "export REF_PATH=spoof"}
ext.prefix = { "${fasta.baseName}.${meta.datatype}.${meta.id}" }
ext.args = '--output-fmt cram --write-index'
}
Expand All @@ -82,6 +87,7 @@ process {
}

withName: SAMTOOLS_STATS {
beforeScript = { "export REF_PATH=spoof"}
ext.prefix = { "${input.baseName}" }
}

Expand All @@ -91,6 +97,7 @@ process {
}

withName: '.*:CONVERT_STATS:SAMTOOLS_.*' {
beforeScript = { "export REF_PATH=spoof"}
publishDir = [
path: { "${params.outdir}/read_mapping/${meta.datatype}" },
mode: params.publish_dir_mode,
Expand Down

0 comments on commit 6c6505d

Please sign in to comment.