Skip to content

Commit 4e85b3b

Browse files
committed
Set id to string
1 parent 5563e31 commit 4e85b3b

File tree

1 file changed

+4
-1
lines changed
  • subworkflows/local/utils_nfcore_phaseimpute_pipeline

1 file changed

+4
-1
lines changed

subworkflows/local/utils_nfcore_phaseimpute_pipeline/main.nf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ workflow PIPELINE_INITIALISATION {
109109
.map { samplesheet ->
110110
validateInputSamplesheet(samplesheet)
111111
}
112-
.map { meta, file, index -> [meta + [batch: 0], file, index] } // Set batch to 0 by default
112+
.map { meta, file, index ->
113+
def new_meta = meta + [id:meta.id.toString()]
114+
[ new_meta + [batch: 0], file, index ]
115+
} // Set batch to 0 by default
113116
} else {
114117
ch_input = Channel.of([[], [], []])
115118
}

0 commit comments

Comments
 (0)