read_profiles {seqCAT} | R Documentation

## Read SNV profiles

### Description

Read SNV profiles in a directory.

### Usage

    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

    # Path to test data
    profile_dir = system.file("extdata", package = "seqCAT")

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

[Package seqCAT version 1.12.0 Index]