load_data: Read and preprocess data about fragments contributions from a...

Description Usage Arguments Details Value Examples

View source: R/functions.R

Description

Read and preprocess data about fragments contributions from a text file

Usage

1
load_data(file_name, sep = "###", keep_models = NULL)

Arguments

file_name

name of the input text file with fragments contributions.

sep

separator between molecule and fragment names. Default is ###.

keep_models

character vector with model names to keep. Only for those models, if their number is more than one, consensus (average) contributions will be calculated.

Details

An input file of an old format had '#' as a separator.

Value

melted data.frame with added consensus (average) contributions

Examples

1
2
file_name <- system.file("extdata", "free-wilson_frag_contributions.txt", package = "rspci")
df <- load_data(file_name)

DrrDom/rspci documentation built on April 27, 2021, 4:26 a.m.