Learn R Programming

qvalue (version 2.4.2)

write.qvalue: Write results to file

Description

Write the results of the q-value object to a file.

Usage

write.qvalue(x, file = NULL, sep = " ", eol = "\n", na = "NA",
  row.names = FALSE, col.names = TRUE)

Arguments

x
A q-value object.
file
Output filename (optional).
sep
Separation between columns.
eol
Character to print at the end of each line.
na
String to use when there are missing values.
row.names
logical. Specify whether row names are to be printed.
col.names
logical. Specify whether column names are to be printed.

Value

  • Nothing of interest.

Details

The output file includes: (i) p-values, (ii) q-values (iii) local FDR values, and (iv) the estimate of $\pi_0$, one per line. If an FDR significance level was specified in the call to qvalue, the significance level is printed and an indicator of significance is included.

See Also

qvalue, plot.qvalue, summary.qvalue

Examples

Run this code
# import data
data(hedenfalk)
p <- hedenfalk$p

# write q-value object
qobj <- qvalue(p)
write.qvalue(qobj, file="myresults.txt")

Run the code above in your browser using DataLab