BuildColumnToProteinDataset | R Documentation |
This function creates a column for the protein dataset after aggregation by using the previous peptide dataset.
BuildColumnToProteinDataset(peptideData, matAdj, columnName, proteinNames)
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 Biobase::fData(peptides_MSnset) that the user wants to keep in the new protein data.frame. |
proteinNames |
The names of the protein in the new dataset (i.e. rownames) |
A vector
Samuel Wieczorek
data(Exp1_R25_pept, package="DAPARdata")
protID <- "Protein_group_IDs"
obj.pep <- Exp1_R25_pept[seq_len(10)]
M <- BuildAdjacencyMatrix(obj.pep, protID, FALSE)
data <- Biobase::fData(obj.pep)
protData <- aggregateMean(obj.pep, M)
name <- "Protein_group_IDs"
proteinNames <- rownames(Biobase::fData(protData$obj.prot))
new.col <- BuildColumnToProteinDataset(data, M, name, proteinNames)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.