selectCorrelatedRowsFromMatrices {rcellminer} | R Documentation

## Select features that are correlated with a given feature (or one or more features from a set of features), merging results from multiple candidate feature matrices.

### Description

Select features that are correlated with a given feature (or one or more features from a set of features), merging results from multiple candidate feature matrices.

### Usage

    selectCorrelatedRowsFromMatrices(Y, XList, corThreshold = 0.1,
      useAbsCor = TRUE)

### Arguments

`Y` | a vector or matrix; rows from each matrix element of X will be correlated with Y if Y is a vector or with rows of Y, if Y is a matrix.
`XList` | a list of matrices whose rows will be correlated with Y (vector) or rows of Y (matrix). The rownames in each matrix element of XList must be specified to values that are unique with respect to the total set of rownames (as derived from all matrices in XList).
`corThreshold` | the minimum correlation threshold for the row to be returned
`useAbsCor` | a logical value indicating whether absolute correlations should be used (default=TRUE).

### Value

a matrix formed from rows of matrices in XList that are correlated with Y (if Y is a vector) or correlated with at least one row of Y if Y is a matrix or data frame.

### Examples

    vec <- runif(10)
    names(vec) <- 1:10
    matList <- list(X1 = matrix(runif(100), 10, 10), X2 = matrix(runif(100), 10, 10))
    rownames(matList$X1) <- paste0("X1_row_", 1:10)
    colnames(matList$X1) <- paste0("X1_col_", 1:10)
    rownames(matList$X2) <- paste0("X2_row_", 1:10)
    colnames(matList$X2) <- paste0("X2_col_", 1:10)
    selectCorrelatedRowsFromMatrices(vec, matList)

[Package rcellminer version 2.2.0 Index]