match_mat: Match matrices by gene ID

Description Usage Arguments Value Examples

Description

Function to return matched matrices with common genes

Usage

1
match_mat(train_pcg, my_pcg)

Arguments

train_pcg

a numeric matrix. training protein coding dataset to construct lncRNA imputation model. Gene IDs are specified in column names.

my_pcg

a numeric matrix. test protein coding dataset to impute lncRNA profile. Gene IDs are specified in column names.

Value

list containing two matrices with common protein coding genes

Examples

1
2
3
temp <- match_mat(train_pcg, my_pcg)
new_train_pcg <- data.matrix(temp[[1]])
new_my_pcg <- data.matrix(temp[[2]])

aritronath/LEXI documentation built on May 10, 2019, 1:27 p.m.