Detect sequencing lanes

detectLanes(path, pattern = "_L([[:digit:]]{3})")

Arguments

path

character. Sequencing file paths, e.g. FASTQs.

pattern

character(1). Lane grep pattern. Defaults to lanePattern global variable.

Value

integer. Lane numbers.

Examples

## Matching lanes 1-4 for paired-end FASTQ files. files <- paste0( "sample1", paste0("_R", seq_len(2L)), paste0("_L00", seq_len(4L)), ".fastq.gz" ) detectLanes(files)
#> [1] 1 2 3 4