results_write: Output writing of pKSEA compare() results

Description Usage Arguments Examples

View source: R/internal_functions.R

Description

Output only: uses results from compare(), outputs up to three files labeled full.csv and no_ksea.csv and ksea_only.csv appended to an output name (KSEA-filtered results only if KSEA database was provided to compare()).

Usage

1
2
results_write(full_ksea.results, outputpath = tempdir(), outputname,
  singlefolder = NULL)

Arguments

full_ksea.results

results from compare() including full and optional KSEA excluded and exclusive results

outputpath

parent directory for output, defaults to tempdir() unless defined by user

outputname

file name of output

singlefolder

if desired, name of output folder within output directory. Default is separate folders for each compare() run

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#Read in example summary statistics dataset from csv
summarydata_ex <- read.csv(system.file("extdata", "example_data1.csv", package="pKSEA"))

#Get matched data using predictions from NetworKIN
matched_data_ex <- get_matched_data(summarydata_ex, NetworKINPred_db)

#Perform single run of pKSEA analysis
single_run_results_ex <- run_on_matched(matched_data_ex, n_permutations = 10)

#Export results to R session temporary directory
## Not run: 
results_write(single_run_results_ex, outputpath= tempdir(), outputname= "example")

## End(Not run)

pKSEA documentation built on May 1, 2019, 6:35 p.m.