write_results: Given results for rgenie grep or alignment analysis of a set...

View source: R/genie_functions.R

write_resultsR Documentation

Given results for rgenie grep or alignment analysis of a set of regions, merges together tables across regions.

Description

Given results for rgenie grep or alignment analysis of a set of regions, merges together tables across regions.

Usage

write_results(results, base_path, delim = "\t", ext = "")

Arguments

results

A list of rgenie results from either grep or deletion analyses.

base_path

The root path (including any file prefix) to use for saved files. Output files will have names e.g. <base_path>.region_stats.tsv

delim

The delimiter to use between columns in saved files.

ext

The extension for saved files. If not specified (or an empty string) then the extension is inferred from the delimiter as either "tsv", "csv", or "txt".

Value

Returns the result of calling bind_results(results).

See Also

grep_analysis

alignment_analysis

bind_results

Examples

# Note: First run alignment_analysis()
# mul1_alignment_results is a pre-loaded result

 write_results(mul1_alignment_results, "/path/to/mul1_results")

Jeremy37/rgenie documentation built on Sept. 22, 2023, 10:17 a.m.