readMSDial | R Documentation |
This function reads the output file from MS-DIAL and converts it into a QFeatures object.
readMSDial(file, version)
file |
A string with the path to the MS-DIAL output file. |
version |
A character string specifying the version of MS-DIAL used to generate the file. This parameter is currently not used. |
A QFeatures object containing:
An assay named "exampleAssay" with the metabolite counts.
Row data (feature metadata) extracted from the input file.
Column data (sample metadata) extracted from the input file.
QFeatures
for more information on the
QFeatures class. SummarizedExperiment
for
details on the underlying data structure.
## Not run:
# Assuming you have an MS-DIAL output file named
"Metabolite_profile_showcase.txt" in a "data" directory:
qf <- readMSDial("data/Metabolite_profile_showcase.txt")
# Examine the structure of the resulting QFeatures object
qf
# Access the assay data
assay(qf[["exampleAssay"]])
# Access the row data (feature metadata)
rowData(qf[["exampleAssay"]])
# Access the column data (sample metadata)
colData(qf)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.