tidy_vst_expr: Reshape a wide vast-tools expression table to a long format

View source: R/vst_utils.R

tidy_vst_exprR Documentation

Reshape a wide vast-tools expression table to a long format

Description

Reshape a wide vast-tools expression table to a long format

Usage

tidy_vst_expr(
  data,
  expression_unit = c("TPM", "cRPKM"),
  ID_cols = c("ID", "NAME", "Names", "ensembl_gene_id")
)

Arguments

data

A dataframe generated with grep_gene_expression from a vast-tools gene expression table.

expression_unit

Character: either TPM or cRPKM based on the gene expression unit in data.

ID_cols

The columns names to use as IDs in data

Value

A reshaped data.frame in long format as tibble.

Examples

grep_gene_expression(path_to_vst_Expression_tbl, ensembl_gene_id) |>
    tidy_vst_expr(ID_cols = "ensembl_geneid", expression_unit = "TMP")

Ni-Ar/niar documentation built on Feb. 3, 2025, 9:25 a.m.