Skip to content

Commit

Permalink
Fgbio tmpdir modification (#1890)
Browse files Browse the repository at this point in the history
* Updated container versions for fgbio groupreadsbyumi and callmolecularconsensusreads

* Corrected fgbio call container, trying to fix fgbio group tests

* Removed incorrect line

* Changed tmp-dir to .

* Update modules/fgbio/groupreadsbyumi/main.nf

Co-authored-by: FriederikeHanssen <Friederike.hanssen@qbic.uni-tuebingen.de>

* Update modules/fgbio/fastqtobam/main.nf

Co-authored-by: FriederikeHanssen <Friederike.hanssen@qbic.uni-tuebingen.de>

* Added callmol and sortbam

* fixed typo in callmol container

Co-authored-by: FriederikeHanssen <Friederike.hanssen@qbic.uni-tuebingen.de>
  • Loading branch information
WackerO and FriederikeHanssen authored Jul 15, 2022
1 parent 1368164 commit 6720d88
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions modules/fgbio/callmolecularconsensusreads/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ process FGBIO_CALLMOLECULARCONSENSUSREADS {
def prefix = task.ext.prefix ?: "${meta.id}"
"""
fgbio \\
--tmp-dir=. \\
CallMolecularConsensusReads \\
-i $bam \\
$args \\
Expand Down
3 changes: 1 addition & 2 deletions modules/fgbio/fastqtobam/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ process FGBIO_FASTQTOBAM {
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
"""
mkdir tmp
fgbio \\
--tmp-dir=${PWD}/tmp \\
--tmp-dir=. \\
FastqToBam \\
-i $reads \\
-o "${prefix}_umi_converted.bam" \\
Expand Down
3 changes: 1 addition & 2 deletions modules/fgbio/groupreadsbyumi/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ process FGBIO_GROUPREADSBYUMI {
def prefix = task.ext.prefix ?: "${meta.id}"

"""
mkdir tmp
fgbio \\
--tmp-dir=${PWD}/tmp \\
--tmp-dir=. \\
GroupReadsByUmi \\
-s $strategy \\
$args \\
Expand Down
7 changes: 4 additions & 3 deletions modules/fgbio/sortbam/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ process FGBIO_SORTBAM {
tag "$meta.id"
label 'process_medium'

conda (params.enable_conda ? "bioconda::fgbio=1.3.0" : null)
conda (params.enable_conda ? "bioconda::fgbio=2.0.2" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/fgbio:1.3.0--0' :
'quay.io/biocontainers/fgbio:1.3.0--0' }"
'https://depot.galaxyproject.org/singularity/fgbio:2.0.2--hdfd78af_0' :
'quay.io/biocontainers/fgbio:2.0.2--hdfd78af_0' }"

input:
tuple val(meta), path(bam)
Expand All @@ -22,6 +22,7 @@ process FGBIO_SORTBAM {
def prefix = task.ext.prefix ?: "${meta.id}"
"""
fgbio \\
--tmp-dir=. \\
SortBam \\
-i $bam \\
$args \\
Expand Down

0 comments on commit 6720d88

Please sign in to comment.