Last data update: 2014.03.03

R: Write results to file
write.qvalueR Documentation

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.

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

# import data
data(hedenfalk)
p <- hedenfalk$p

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

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(qvalue)
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/qvalue/write.qvalue.Rd_%03d_medium.png", width=480, height=480)
> ### Name: write.qvalue
> ### Title: Write results to file
> ### Aliases: write.qvalue
> ### Keywords: write.qvalue
> 
> ### ** Examples
> 
> # import data
> data(hedenfalk)
> p <- hedenfalk$p
> 
> # write q-value object
> qobj <- qvalue(p)
> write.qvalue(qobj, file="myresults.txt")
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>