Learn R Programming

DAPAR (version 1.4.7)

BuildColumnToProteinDataset: creates a column for the protein dataset after agregation by using the previous peptide dataset.

Description

This function creates a column for the protein dataset after agregation by using the previous peptide dataset.

Usage

BuildColumnToProteinDataset(peptideData, matAdj, columnName)

Arguments

peptideData
A data.frame of meta data of peptides. It is the fData of the MSnset object.
matAdj
The adjacency matrix used to agregate the peptides data.
columnName
The name of the column in fData(peptides_MSnset) that the user wants to keep in the new protein data.frame.

Value

A vector

Examples

Run this code
data(UPSpep25)
protID <- "Protein.group.IDs"
M <- BuildAdjacencyMatrix(UPSpep25, protID, FALSE)
data <- Biobase::fData(UPSpep25)
name <- "organism"
BuildColumnToProteinDataset(data, M, name )

Run the code above in your browser using DataLab