Closed DrRuiLi closed 6 days ago
Thanks for the suggestion - but I would rather keep it with file names, as sample names are not mandatory and we can not expect that users provide this information at all (or know in which column this information is provided).
Ideally, I would anyway suggest to use the quantify
method from xcms
that returns a standard Bioconductor SummarizedExperiment
object with the feature values as assay data. All additional sample annotations are also provided and stored in the object's colData
slot and can in addition be accessed with $
. Since the colData
needs to have the same order than the columns in assay
(or featureValues
) it is quite easy to get additional annotations for each column in the feature abundance matrix.
The default column names in output of featureValues() were fileNames(XCMSnExp) and no other options, should there be other options such as sampleNames(XCMSnExp) or customized vector?