BuildAdjacencyMatrix: Function matrix of appartenance group

View source: R/agregation.R

BuildAdjacencyMatrixR Documentation

Function matrix of appartenance group

Description

Method to create a binary matrix with proteins in columns and peptides in lines on a MSnSet object (peptides)

Usage

BuildAdjacencyMatrix(obj.pep, protID, unique = TRUE)

Arguments

obj.pep

An object (peptides) of class MSnSet.

protID

The name of proteins ID column

unique

A boolean to indicate whether only the unique peptides must be considered (TRUE) or if the shared peptides have to be integrated (FALSE).

Value

A binary matrix

Author(s)

Florence Combes, Samuel Wieczorek, Alexia Dorffer

Examples

data(Exp1_R25_pept, package="DaparToolshedData")
protId <- "Protein_group_IDs"
obj <- Exp1_R25_pept[[1]]
BuildAdjacencyMatrix(obj[seq_len(10)], protId, TRUE)


samWieczorek/DAPAR2 documentation built on Oct. 15, 2023, 1:45 p.m.