Learn R Programming

quantbayes (version 0.1.0)

quant_es_from_binary_table: Read a flat binary table and run quant_es_core

Description

Reads a TSV, CSV or other delimited file where:

  • the first column is a variant identifier (unless removed)

  • remaining columns contain binary 0, 1, or NA evidence indicators.

Usage

quant_es_from_binary_table(
  path,
  sep = "\t",
  header = TRUE,
  variant_col = NULL
)

Value

A standard quantbayes result list.

Arguments

path

Path to a text file.

sep

Field separator (default tab).

header

Whether the file has a header.

variant_col

Column name containing the variant IDs. If NULL and no such column exists, sequential IDs will be created.

Examples

Run this code
tmp <- tempfile(fileext = ".tsv")
write.table(core_test_data, tmp, sep = "\t", quote = FALSE, row.names = FALSE)
res <- quant_es_from_binary_table(tmp)
res$global

Run the code above in your browser using DataLab