Closed gmhhope closed 3 years ago
Actually, I would rather exclude the "peakidx"
column before exporting:
fts <- featureDefinitions(xdata)
write.csv(fts[, colnames(fts) != "peakidx"], ...)
The reason for the export problems are that the "peakidx"
column is a list
with the indices of the assigned chromatographic peaks and the as.character
call on that during export is not formatting it correctly.
Thanks very much for the reply!
I'm closing the issue now - feel free to re-open if necessary
Dear XCMS developer,
Thanks very much for the excellent tutorial of XCMS.
I am looking through the tutorial but I cannot find a best practice to export the feature definition and feature table. I can easily export the matrix using
write.csv(featureValues(xdata, value = "into"), path2output)
. But usingwrite.csv
onfeature Definitions
create some strange organization of the columnpeakidx
featureDefinitions_top_rows.csv.zipCould you help to answer this! I greatly appreciate your input.
Thanks, Minghao Gong