extract_samples: Parse sample from file names

View source: R/extract_samples.R

extract_samplesR Documentation

Parse sample from file names

Description

Sample names are parsed from file names without the extension. If the file name is not unique, the parent directory is used.

Usage

extract_samples(files)

Arguments

files

file name with path

Value

A vector

Author(s)

Chris Stubben

Examples

 # File name or parent directory should be unique
 extract_samples(c("align1/1355X1.counts", "align2/1355X2.counts"))
 extract_samples(c("align1/1355X1/Log.out", "align2/1355X2/Log.out"))

HuntsmanCancerInstitute/hciR documentation built on Aug. 20, 2024, 12:22 a.m.