peaksGroup-proFIAset-method: Return the peaks corresponding to a group.

Description Usage Arguments Value Examples

Description

Return the peaks corresponding ot a group given by his index.

Usage

1
2
## S4 method for signature 'proFIAset'
peaksGroup(object, index = NULL)

Arguments

object

A proFIAset object.

index

A numeric vector r giving the group to be returned. NA are ignored.

Value

The peaks in the given group, see proFIAset-class.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if(require(plasFIA)){
    data(plasSet)
    data(plasMols)

    #finding the molecules of plasMols
    vmatch<-findMzGroup(plasSet,mz=plasMols[,"mass_M+H"],tol=5)

    mol_peaks<-peaksGroup(plasSet,index=vmatch)
    head(mol_peaks)
}

proFIA documentation built on March 20, 2021, 6 p.m.