check_column_names: Check column names

Description Usage Arguments Details Value

View source: R/check_column_names.R

Description

This function checks to make sure the variables required by PQPQ are in the data set.

Usage

1
check_column_names(df, column_identifiers)

Arguments

df

A data frame (see details)

column_identifiers

A list of parameters in the data set. See details.

Details

This is a utility function designed to make sure that each parameter included in the column identfiers is present in the data set. The parameter column_identifer should be a list with fields protein_id identifying a single varible with the proteins/Accessions, confidence identifying a single variable containing the confidence for each peptide identity, sample_names identifying which columns contain the quantification data for each biological sample, and peptide_ids containing the columns uniquely identifying each peptide.

Value

This function returns the parameter list, with any factors replaced by characters. The fuction will currently stop if an error is detected, so that the parameters causing problems can be fixed by the user.


melissakey/PQPQ documentation built on May 4, 2019, 7:42 p.m.