iqtl_read: Import an IQTL file

Description Usage Arguments Value Examples

View source: R/iqtl_fun.R

Description

Reads a file exported with ImageQuant TL and performs basic actions to tidy up the format.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
iqtl_read(
  file,
  row_name = "band",
  col_group = "lane",
  col_repeat = c(quantify = "vol", "vol+bkg", "CAL", "MW", "Rf"),
  reverse_rows = TRUE,
  .id = "id",
  .sep = "_",
  gel_name = paste0("gel", .sep, "[[:alnum:]_-]+")
)

Arguments

file

Path to the file.

row_name

Name to give to rows.

col_group

Name to give to column groups, i.e., repeating units of col_repeat.

col_repeat

Column variables that repeat along col_group.

reverse_rows

If TRUE, the "row_name" identifiers are counted from bottom to top; else from top to bottom.

.id

General identifier added to row_name and col_group.

.sep

General separator.

gel_name

A regular expression to extract an identifier from the file name.

Value

A data frame of class data.table.

Examples

1
2
3
assay_file <- system.file("extdata", "gel_01.txt", package = "summerrband")

iqtl_read(assay_file)

benjbuch/summerrband documentation built on Dec. 19, 2021, 8:43 a.m.