sanitize_expt_fData: Given an expressionset, sanitize the gene information data.

View source: R/metadata.R

sanitize_expt_fDataR Documentation

Given an expressionset, sanitize the gene information data.

Description

Given an expressionset, sanitize the gene information data.

Usage

sanitize_expt_fData(
  expt,
  columns = NULL,
  na_value = "notapplicable",
  lower = TRUE,
  punct = TRUE,
  factorize = "heuristic",
  max_levels = NULL,
  spaces = FALSE,
  numbers = NULL,
  numeric = FALSE
)

Arguments

expt

Input expressionset.

columns

Set of columns to sanitize, otherwise all of them.

na_value

Fill in NA with this.

lower

sanitize capitalization.

punct

Remove punctuation?

factorize

Convert columns to factors? When set to 'heuristic' this tries out as.factor and sees if the number of levels is silly.

max_levels

The definition of 'silly' above.

spaces

Allow spaces in the data?

numbers

Sanitize number formats (e.g. 1.000.000,0 vs. 1,000,000.0)

numeric

Set columns to numeric when possible?


elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.