Skip to content

Commit 199dcd5

Browse files
committed
adjusted creation of angsd input channel for unmerged libs
1 parent 426e4cd commit 199dcd5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

subworkflows/local/genotype.nf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,8 @@ workflow GENOTYPE {
409409
.map {
410410
combo_meta, metas, bams, bais ->
411411
def new_map = [:]
412-
def ids = metas.collect { meta -> meta.sample_id }
412+
// ids will either be sampleID or libraryID depending on desired input for genotyping (default is use meta.sample_id, for merged sample data)
413+
def ids = params.genotyping_use_unmerged_libraries ? metas.collect { meta -> meta.library_id } : metas.collect { meta -> meta.sample_id }
413414
def strandedness = metas.collect { meta -> meta.strandedness }
414415
def single_ends = metas.collect { meta -> meta.single_end }
415416
def reference = combo_meta.reference

0 commit comments

Comments
 (0)