Skip to content

Commit

Permalink
Fixed lane handling
Browse files Browse the repository at this point in the history
  • Loading branch information
zxBIB Schcolnicov committed Sep 23, 2024
1 parent e0de68f commit 627d368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflows/demultiplex.nf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ workflow DEMULTIPLEX {
}
.map { file -> //build meta again from file name
def meta_id = (file =~ /.*\/(.*?)(\.lane|_no_adapters)/)[0][1] //extracts everything from the last "/" until ".lane" or "_no_adapters"
def meta_lane = (file.contains('.lane')) ? (file =~ /\.lane(\d+)/)[0][1].toInteger() : null //extracts number after ".lane" until next "_", must be int to match lane value from meta
def meta_lane = (file.getName().contains('.lane')) ? (file =~ /\.lane(\d+)/)[0][1].toInteger() : null //extracts number after ".lane" until next "_", must be int to match lane value from meta
[[id: meta_id, lane: meta_lane],file]
}
ch_samplesheet_new = ch_samplesheet
Expand Down

0 comments on commit 627d368

Please sign in to comment.