renameColumns: Rename columns of imported data frame

Description Usage Arguments Value Examples

View source: R/import_funcs.R

Description

Rename columns of imported data frame

Usage

1
renameColumns(dataLong, idVar, geneNameVar)

Arguments

dataLong

long format data frame of imported dataset

idVar

character string indicating which data column provides the unique identifiers for each protein.

geneNameVar

character string of the column name that describes the gene name of a given protein in the raw data files

Value

data frame containing imported data with renamed columns

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
data("config_tab")
data("raw_dat_list")

dataList <- import2dMain(configTable = config_tab,
                         data = raw_dat_list,
                         idVar = "protein_id",
                         fcStr = "rel_fc_",
                         addCol = "gene_name",
                         naStrs = NA,
                         intensityStr = "signal_sum_",
                         nonZeroCols = "qusm",
                         qualColName = "qupm")
configLong <- configWide2Long(configWide = config_tab)
annoDat <- annotateDataList(dataList = dataList,
                            geneNameVar = "gene_name",
                            configLong = configLong,
                            intensityStr = "signal_sum_",
                            fcStr = "rel_fc_")
renameColumns(annoDat, 
              idVar = "protein_id", 
              geneNameVar = "gene_name")

TPP2D documentation built on Nov. 8, 2020, 4:54 p.m.