View source: R/data_formatting.R
format_to_ref | R Documentation |
This function keeps matching gene IDs between the sample and reference data, removing non-matching data.
format_to_ref(samp, refdata, na.rm = T, verbose = T)
samp |
the sample gene expression matrix with genes as rows and individuals as columns |
refdata |
the reference matrix, same format as |
na.rm |
if TRUE (default), rows with NA are removed |
verbose |
if TRUE (default), prints a summary of initial and resulting gene counts |
a list with matching samp
and refdata
expression matrices as well as an inter.genes
character vector with the matching gene IDs.
X <- matrix(rnorm(50), ncol = 5)
Y <- X
rownames(X) <- paste0('g', 1:10)
rownames(Y) <- paste0('g', 4:13)
Z <- format_to_ref(X,Y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.