read_toppic: Read in TopPIC files

read_toppicR Documentation

Read in TopPIC files

Description

A wrapper function to the read.delim function that is specific to the files output by TopPIC. Metadata is always included at the beginning of the TopPIC file and a header is always provided. This function removes all lines containing metadata and reads in the remaining lines of the file starting with the header. Variables needed for the remainder of the TopPICR workflow are added and variables not used by TopPICR are removed.

Usage

read_toppic(file_path, file_name, faims = FALSE, ...)

Arguments

file_path

A character string specifying the path to the folder with the TopPIC output files.

file_name

A character vector of file names containing the files output from TopPIC. The output from these files will be combined into one data.table. Currently this function can read in data from either ms2_toppic_prsm.tsv files or ms1.feature files. When reading in data all files must be the same type (e.g., ms2_toppic_prsm.tsv).

faims

Logical. If true the data contain multiple FAIMS compensation voltages (CVs).

...

Additional arguments to read_tsv.

Value

A data.table where all the data from the input files are combined row wise.

Author(s)

Evan A Martin


evanamartin/TopPICR documentation built on Dec. 9, 2022, 8:05 p.m.