write_matrix: Write matrix to file system

View source: R/utils.R

write_matrixR Documentation

Write matrix to file system

Description

Write matrix to file system

Usage

write_matrix(
  output_dir,
  matrix_name,
  exprs,
  norm_exprs,
  sum_exprs,
  verbose = FALSE
)

Arguments

output_dir

path to output directory (directory where final matrices will be written)

matrix_name

Name of matrix

exprs

data.table of raw (background-corrected) expression (from makeRawMatrix())

norm_exprs

data.table of normalized expression (from normalizeMatrix())

sum_exprs

data.table of summarized expression (from summarizeMatrix())

verbose

Write verbose print statements?

Details

Writes four versions of flat tsv files:

  1. <matrix_name>.raw.tsv: raw, background-corrected values

  2. <matrix_name>.tsv: normalized values

  3. <matrix_name>.summary.tsv: normalized values, summarized by gene symbol (based on current annotation)

  4. <matrix_name>.summary.orig: normalized values, summarized by gene symbol (based on original annotation)


RGLab/HIPCMatrix documentation built on Jan. 29, 2023, 5:13 a.m.