addSampleData: addSampleData

addSampleDataR Documentation

addSampleData

Description

Add sample data to a MultiAmplicon object

Usage

addSampleData(MA, sampleData = NULL)

Arguments

MA

A MultiAmplicon object

sampleData

A data frame of providing data for samples in the MultiAmplicon object. This has to have the same rownames as the colnames of the MultiAmplicon object. If NULL, (default) sampleData will be added based on names of the link{PairedReadFileSet} and the resulting sampleData will (only) give names of forward and reverse file names for each sample.

Details

The sampleData slot is filled with a sample_data object from phyoseq created merging sample names (colnames) of the MultiAmplicon object with a data frame of sample data. The rownames of the that sampleData data frame must correspond to colnames of the MultiAmplcion object.

Value

A MultiAmplicon object with the sampleData slot filled.

Author(s)

Emanuel Heitlinger


derele/MultiAmplicon documentation built on Dec. 11, 2024, 12:09 p.m.