generate_connectivity_matrix: Generate connectivity matrices

Description Usage Arguments Value Examples

View source: R/annotate_features.R

Description

Generates matrices summarizing connections between adducts and isotopes.

Usage

1
2
3
4
5
6

Arguments

info.features

data.frame with information about theoretical possible features (e.g. as generated by the function chem_formula_2_adducts).

type

Character. Type of connectivity matrix to generate ("adducts", "isotopes").

ids.use

Character vector. Feature identifiers to be used for connectivity matrix. If NULL connectivity matrix is build using all features in info.features.

ratios

Logical. Should the isotope connectivity matrix contain the expected abundance ratios? (deafult = TRUE).

Value

matrix with theoretical possible features in rows and columns. In the adduct matrix, the cell i,j contains 1, if features i and j are monoisotopic isotopes and adducts of the same chemical formula and 0 otherwise. In the isotope matrix, the cell i,j contains 1, if features i and j are isotopes of the same adduct (or the ratio of the theoretical abundances if ratios = TRUE) and 0 otherwise.

Examples

1
2
3
4
5
6
7

szymczak-lab/preprocessHighResMS documentation built on Oct. 6, 2020, 12:50 a.m.