read_profiles {seqCAT} | R Documentation |
Read SNV profiles in a directory.
read_profiles(profile_dir, pattern = ".profile.txt", sample_names = FALSE)
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). |
This is a wrapper function for reading multiple SNV profiles present in a directory (and its sub-directories in recursive mode).
A list of data frames.
# Path to test data profile_dir = system.file("extdata", package = "seqCAT") # Read test profiles profile_list <- read_profiles(profile_dir, pattern = "profile.txt")