row_standardize: row_standardize

View source: R/MODULE_3_QC_PCA.R

row_standardizeR Documentation

row_standardize

Description

Function to standardize a selected block of a data frame row-wise.

Usage

row_standardize(x, columns)

Arguments

x

Input data frame containing RNA-seq or Ribo-seq data. Rows are genes/transcripts and columns are samples. The data frame may contain additional columns for gene/transcript ID or other metadata.

columns

A vector specifying the columns to be included for row-wise standardization

Details

Row mean is subtracted from each element in the row and the result is divided by row standard deviation.

Value

A data frame where the specified columns from the input are row-standardized and the rest is intact.

Examples

te_LMCN.v2.stnd <- row_standardize(te_LMCN.v2, columns = c(2:9))

goodarzilab/Ribolog documentation built on Oct. 7, 2022, 10:14 p.m.