check.pigengene.input {Pigengene} | R Documentation

## Quality check on the imput

### Description

Checks `Data` and `Labels` for `NA` values, row and column names, etc.

### Usage

      check.pigengene.input(Data, Labels, na.rm = FALSE)

### Arguments

`Data` | A matrix or data frame containing the expression data, with genes corresponding to columns and rows corresponding to samples. Rows and columns must be named.
`Labels` | A (preferably named) vector containing the Labels (condition types) for `Data`. Names must agree with rows of `Data`.
`na.rm` | If `TRUE`, `NA`s in the Data will be replaces with the average of the column, however, if the frequency of `NA`s in the column is too high, the whole column will be removed.

### Value

A list of:

`Data` | The checked `Data` matrix, `NA` possibly removed and rows are ordered as names of `Labels`.
`Labels` | The checked vector of `Labels`

### Author(s)

Habil Zare

### See Also

`check.nas`, `one.step.pigengene`, `Pigengene-package`

### Examples

         data(aml)
         Labels <- c(rep("AML",nrow(aml)))
         names(Labels) <- rownames(aml)
         c1 <- check.pigengene.input(Data=aml, Labels=Labels,na.rm=TRUE)
         Data <- c1$Data
         Labels <- c1$Labels

[Package Pigengene version 1.10.0 Index]