saveLineByLine: Converts rules to LineByLine format.

Description Usage Arguments Author(s) Examples

View source: R/saveLineByLine.R

Description

Saves rule table as LineByLine txt format that is compatible with VisuNet and Ciruvis framework.

Usage

1
saveLineByLine(rules, path, discrete=FALSE, filterByPval=FALSE, pval=0.05)

Arguments

rules

A data frame of rule table in a form of rosetta output.

path

Path to save the output file. Should contain the name of the file with .txt extension.

discrete

Logical. If TRUE data are discrete. If FALSE data are not discrete values. Default FALSE.

filterByPval

Logical. If TRUE the filtration is performed. Default is FALSE.

pval

A numeric value containing p-value threshold. Default is 0.05.

Author(s)

Mateusz Garbulowski

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(R.ROSETTA)

out <- rosetta(autcon)
rules <- out$main

# default
saveLineByLine(rules, "outFile.txt")

# filter by p-value
saveLineByLine(rules, "outFile.txt", filterByPval=TRUE, pval=0.01)

mategarb/R.ROSETTA documentation built on Aug. 20, 2020, 5:21 a.m.