filter_by_id: Filter Samples by ID

Description Usage Arguments Value Examples

Description

Given a vector of sample names or labeling that has a sample ID, this function will filter the sample names by IDs.

Usage

1
filter_by_id(ids, sample_list)

Arguments

ids

vector of ID numbers or labels

sample_list

vector of string sample names

Value

vector of original sample vector but filtered for certain IDs

Examples

1
2
3
4
example_samples <- c("lane1-s216-index-GTTTCTGCT-s216_L001_R1_001.fastq.gz",
                     "lane1-s217-index-CACGATGGA-s217_L001_R1_001.fastq.gz")
example_ids <- c("s216")
filter_by_id(example_ids, example_samples)

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