write.qvalue: Write results to file

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/write_qvalue.R

Description

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

Usage

1
2
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.

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.

Value

Nothing of interest.

Author(s)

John D. Storey, Andrew J. Bass

See Also

qvalue, plot.qvalue, summary.qvalue

Examples

1
2
3
4
5
6
7
# import data
data(hedenfalk)
p <- hedenfalk$p

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

Example output



qvalue documentation built on Nov. 8, 2020, 8:03 p.m.