genetable_to_matrix: Convert a gene expression data table into a caret-friendly...

Description Usage Arguments Value

View source: R/normalize.R

Description

Gene expression data tables follow tidy conventions where a separate gene_id column is used in place of row names. Caret expects explanatory variables (in this case genes) to be columns. This function transposes the rna expression table and adds the gene_ids as column names.

Usage

1

Arguments

expression

A table with a column "gene_id" that contains expression estimates.

transpose

Set to TRUE to transpose rows and columns.

Value

A matrix where genes are columns and samples are rows.


rmauntz/Larson_cfRNA_DarkChannelBiomarkers documentation built on Jan. 30, 2021, 12:47 a.m.