read_profiles: Read SNV profiles

Description Usage Arguments Details Value Examples

View source: R/read_profile.R

Description

Read SNV profiles in a directory.

Usage

1
2
read_profiles(profile_dir, pattern = ".profile.txt",
  sample_names = FALSE)

Arguments

profile_dir

The directory containing the profiles to be read (path).

pattern

Pattern for file name or extension to be read (character).

sample_names

Add sample name based on file name; overrides profile sample if it already exists (boolean).

Details

This is a wrapper function for reading multiple SNV profiles present in a directory (and its sub-directories in recursive mode).

Value

A list of data frames.

Examples

1
2
3
4
5
# Path to test data
profile_dir = system.file("extdata", package = "seqCAT")

# Read test profiles
profile_list <- read_profiles(profile_dir, pattern = "profile.txt")

seqCAT documentation built on Nov. 8, 2020, 7:36 p.m.