add_full_names: Add full fragments names as the first column to the existed...

Description Usage Arguments Details Value Examples

View source: R/functions.R

Description

Add full fragments names as the first column to the existed data.frame

Usage

1
add_full_names(df, addM = TRUE, addN = TRUE)

Arguments

df

data.frame load with load_data function.

addM

whether or not to add the count of molecules contatning each fragment

addN

whether or not to add the count of each fragment across the whole data set

Details

Convenience function to use instead of get_full_names. Input data.frame has to contain three columns names FragID, M and N

Value

data.frame with the first column containing full fragments names

Examples

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

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