View source: R/pipeline_functions.R
IQR.filter | R Documentation |
IQR.filter
is a function to extract genes from the expression matrix by setting threshold to their IQR value.
IQR (interquartile range) is a measure of statistical dispersion. It is calculated for each gene across all the samples.
By setting threshold value, genes with certain statistical dispersion across samples will be filtered out.
This step is mainly used to perform sample cluster and to prepare the input for SJAracne.
IQR.filter(
exp_mat,
use_genes = rownames(exp_mat),
thre = 0.5,
loose_gene = NULL,
loose_thre = 0.1
)
exp_mat |
matrix, the gene expression matrix. Each row represents a gene/transcript/probe, each column represents a sample. |
use_genes |
a vector of characters, the gene list needed to be filtered. Default is the row names of |
thre |
numeric, the threshold for IQR of the genes in |
loose_gene |
a vector of characters, the gene list that only need to pass the |
loose_thre |
numeric, the threshold for IQR of the genes in |
Return a vector with logical values indicate which genes should be kept.
mat1 <- matrix(rnorm(15000),nrow=1500,ncol=10)
colnames(mat1) <- paste0('Sample',1:ncol(mat1))
rownames(mat1) <- paste0('Gene',1:nrow(mat1))
choose1 <- IQR.filter(mat1,thre=0.5,
loose_gene=paste0('Gene',1:100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.