extract_sample_id: Extract Sample IDs

Description Usage Arguments Value Examples

Description

In a vector of sequence labels, return a vector of just the sample IDs with the format of "s" followed by three digits.

Usage

1
extract_sample_id(sample_list)

Arguments

sample_list

vector of sample names

Value

vector of sample IDs

Examples

1
2
3
example_samples <- c("lane1-s216-index-GTTTCTGCT-s216.fastq.gz",
                     "lane1-s217-index-CACGATGGA-s217.fastq.gz")
extract_sample_id(example_samples)

erictleung/dada2HPCPipe documentation built on May 10, 2019, 1:19 p.m.