get.file.path: get.file.path

Description Usage Arguments Value

View source: R/helper_functions.R

Description

Get absolute path to sample-specific file for one or more samples

Usage

1
2
get.file.path(sample.ids, directory, extension = NULL,
  allow.multiple = FALSE, allow.none = FALSE)

Arguments

sample.ids

Vector of sample IDs to match filename on

directory

Path to directory containing files

extension

String giving extension of file

allow.multiple

Boolean indicating whether to allow multiple matching files. Defaults to false, which throws an error if the query matches more than one file.

allow.none

Boolean indicating whether to allow no matching files. Defaults to false, which throws an error if the query does not match any files.

Value

Paths to matched files


varitas documentation built on Nov. 14, 2020, 1:07 a.m.