Skip to content

Commit

Permalink
add retry
Browse files Browse the repository at this point in the history
  • Loading branch information
famosab committed Jan 17, 2025
1 parent 6686269 commit a436f43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ process {
}

withName: 'BCFTOOLS_REHEADER' {
label = "error_retry"
ext.prefix = { "${meta.label}.reheader" }
ext.args2 = { "--output-type z --write-index=tbi" }
publishDir = [
Expand Down
12 changes: 3 additions & 9 deletions workflows/vcftomat.nf
Original file line number Diff line number Diff line change
Expand Up @@ -126,19 +126,13 @@ workflow VCFTOMAT {
//
// Rename samples in vcf with the label
//
ch_vcf_concat.map { meta, vcf_tbi ->
def sample_file = file("${workflow.workDir}/tmp/${meta.label}.txt") //${workflow.workDir}/tmp/
sample_file.text = "${meta.label}"
[ meta, vcf_tbi[0], [], sample_file ]
}.view()

BCFTOOLS_REHEADER(
// Create the sample files and add them to ch_vcf_concat
// Create the sample files in tmp folder and add them to ch_vcf_concat
ch_vcf_concat.map { meta, vcf_tbi ->
def sample_file = file("${workflow.workDir}/tmp/${meta.label}.txt") //
def sample_file = file("${workflow.workDir}/tmp/${meta.label}.txt")
sample_file.text = "${meta.label}"
[ meta, vcf_tbi[0], [], sample_file ]
},//.view(),
},
[[],[]]
)

Expand Down

0 comments on commit a436f43

Please sign in to comment.