rc.expand.sample.names: rc.expand.sample.names

View source: R/rc.expand.sample.names.R

rc.expand.sample.namesR Documentation

rc.expand.sample.names

Description

turn concatenated sample names into factors

Usage

rc.expand.sample.names(
  ramclustObj = NULL,
  delim = "-",
  factor.names = TRUE,
  quiet = FALSE
)

Arguments

ramclustObj

ramclustObj containing MSdata with optional MSMSdata (MSe, DIA, idMSMS)

delim

what delimiter should be used to separate names into factors? '-' by default

factor.names

logical or character vector. if TRUE, user will enter names one by on in console. If character vector (i.e. c("trt", "time")) names are assigned to table

quiet

logical . if TRUE, user will not be prompted to enter names one by on in console.

Details

THis function only works on newer format ramclustObjects with a $phenoData slot.

This function will split sample names by a delimiter, and enable users to name factors

Value

ramclustR object with normalized data.

Author(s)

Corey Broeckling

References

Broeckling CD, Afsar FA, Neumann S, Ben-Hur A, Prenni JE. RAMClust: a novel feature clustering method enables spectral-matching-based annotation for metabolomics data. Anal Chem. 2014 Jul 15;86(14):6812-7. doi: 10.1021/ac501530d. Epub 2014 Jun 26. PubMed PMID: 24927477.


cbroeckl/RAMClustR documentation built on Sept. 1, 2024, 1:50 a.m.