check_diff_genes: Check a list of genes how they show difference.

View source: R/check_diff_genes.R

check_diff_genesR Documentation

Check a list of genes how they show difference.

Description

How does a gene or a list of genes show difference between two group. The boxplot or heatmap will be drawed. just a wrap function of ggpubr and pheatmap.

Usage

check_diff_genes(gene, genes_expr, group_list)

Arguments

gene

A vector contains all gene ids of interest. Gene ids should be gene symbol.

genes_expr

An expression matrix, the rownames should be gene symbol.

group_list

A vector contains the group information of each samples in expression matrix

Value

A figure : boxplot or heatmap

Examples

attach(GSE95166)
check_diff_genes('LRCH3',genes_expr,group_list )

x=DEG$logFC
names(x)=rownames(DEG)
cg=c(names(head(sort(x),100)),  names(tail(sort(x),100)))
check_diff_genes(cg,genes_expr,group_list )


AnnoProbe documentation built on Nov. 14, 2022, 9:05 a.m.