makeProfileMatrix: Make matrix for use with ramclustR.df

Description Usage Arguments Value

View source: R/ramclustRdf.R

Description

Make matrix for use with ramclustR.df

Usage

1
2
3
makeProfileMatrix(profiles, type = c("ramclust", "graphviz"),
  addIndex = ifelse(type[[1]] == "ramclust", TRUE, FALSE),
  reindexProfiles = 0)

Arguments

profiles

A profiles object from enviMass

type

ramclust or graphviz, in the latter case the retention time is inserted as a first row (not only in the column names).

addIndex

If TRUE, add a sample index column in front of the table, as required by RAMClust.

Value

A matrix m x n, where the rows (sic) are the samples and the columns are the profiles (features) without "profile 0". The columns are named profileID_RT. This is a requirement for ramclustR (which usually uses mz_RT, but actually doesn't use mz for calculation and therefore the content is arbitrary. It's easier to use the profile ID for precise lookup.)


meowcat/RMassScreening documentation built on Jan. 9, 2020, 10:49 p.m.