Add sample data to a MultiAmplicon object

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.

Value

A MultiAmplicon object with the sampleData slot filled.

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.

Author

Emanuel Heitlinger