Description Usage Arguments Value Examples
Prints a combinedTable
report to a file, specified by
file
argument. Output file has an empty line between
each separate m/z group for ease of viewing.
1 | write2file(object, file, sep = ",")
|
object |
|
file |
character string naming the output file path |
sep |
Character field separator. Values within each row are separated by this character. |
no values returned
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data(plasma30)
data(plasma20)
p30 <- metabData(plasma30, samples = "CHEAR")
p20 <- metabData(plasma20, samples = "Red", rtmax = 17.25)
p.comb <- metabCombiner(xdata = p30, ydata = p20, binGap = 0.0075)
p.comb <- selectAnchors(p.comb, tolmz = 0.003, tolrtq = 0.3, windy = 0.02)
p.comb <- fit_gam(p.comb, k = 20, iterFilter = 1)
p.comb <- calcScores(p.comb, A = 90, B = 14, C = 0.5)
###using metabCombiner object as input
write2file(p.comb, file = "plasma-combined.csv", sep = ",")
###using combinedTable report as input
cTable <- combinedTable(p.comb)
write2file(cTable, file = "plasma-combined.txt", sep = "\t")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.