R/detectLanes.R
detectLanes.Rd
Detect sequencing lanes
detectLanes(path, pattern = "_L([[:digit:]]{3})")
character. Sequencing file paths, e.g. FASTQs.
character
character(1). Lane grep pattern. Defaults to lanePattern global variable.
character(1)
integer. Lane numbers.
integer
Updated 2023-10-03.
## Matching lanes 1-4 for paired-end FASTQ files. files <- paste0( "sample1", paste0("_R", seq_len(2L)), paste0("_L00", seq_len(4L)), ".fastq.gz" ) x <- detectLanes(files) print(x) #> [1] 1 2 3 4