Skip to content

Commit

Permalink
spoof REF_PATH to disallow remote lookkup for cram
Browse files Browse the repository at this point in the history
  • Loading branch information
tkchafin committed Sep 9, 2024
1 parent ce55421 commit b67459c
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 b67459c

Please sign in to comment.