GxE.scan.combine {CGEN} | R Documentation

## Combines output files into one file

### Description

Combines the output files from running GxE.scan on a cluster.

### Usage

    GxE.scan.combine(out.file, dir.or.files, pattern="GxEout_")

### Arguments

`out.file` | Name of the output file of combined results. No default.
`dir.or.files` | Directory containing the output files from `GxE.scan` or the full names of the files to be combined. If length(`dir.or.files`) = 1, then it is assumed to be a directory. No default.
`pattern` | Character string to match file names when `dir.or.files` is a directory. The default is "GxEout_".

### Details

This function would be called after all the submitted jobs from `GxE.scan.partition` have finished running. It is assumed that the files to be combined all have a header of variable names.

### Value

A character vector of the files combined.

### See Also

`GxE.scan`, `GxE.scan.partition`

### Examples

     out.file <- "/data/results/all_output.txt"
     dir      <- "/data/out"
     # GxE.scan.combine(out.file, dir)

[Package CGEN version 3.20.0 Index]