This is the function to process the gene count table to show gene expression variations over time or across groups.
plot_gene(
data = ~dat,
anno = ~meta,
gene.names = c("AAAS", "A2ML1", "AADACL3"),
ct.table.id.type = "ENSEMBL",
gene.id.type = "SYMBOL",
treatment = "Treatment",
sample.id = "sample_id",
time = "day",
log.option = TRUE,
plot.save.to = NULL,
input.type = "count"
)
Count table in the format of dataframe with gene id as row.names.
Annotation table that provides design information.
Genes to be visualized, in the format of character vector.
The gene id format in data
should be one of: ACCNUM, ALIAS, ENSEMBL, ENSEMBLPROT,
ENSEMBLTRANS, ENTREZID, ENZYME, EVIDENCE, EVIDENCEALL, GENENAME, GO, GOALL, IPI, MAP, OMIM,
ONTOLOGY, ONTOLOGYALL, PATH, PFAM, PMID, PROSITE, REFSEQ, SYMBOL, UCSCKG, UNIGENE, UNIPROT.
The gene id format of gene.names
, should be one of: ACCNUM, ALIAS, ENSEMBL, ENSEMBLPROT,
ENSEMBLTRANS, ENTREZID, ENZYME, EVIDENCE, EVIDENCEALL, GENENAME, GO, GOALL, IPI, MAP, OMIM,
ONTOLOGY, ONTOLOGYALL, PATH, PFAM, PMID, PROSITE, REFSEQ, SYMBOL, UCSCKG, UNIGENE, UNIPROT.
The column name to specify treatment groups.
The column name to specify sample IDs.
The column name to specify different time points.
Logical option, whether to log2 transform the CPM as y-axis. Default = True.
The address to save the plot from simplified cutoff combination with FDR of 0.01, 0.05, 0.1, and 0.2.
One of count
or cpm
indicating what the input data type is. If count
, the CPM of the input data will be
calculated using edgeR::cpm()
. Default = count
.
The function returns a ggplot object.
The function takes the gene counts and returns a ggplot that shows gene expression variation over time or group.
Xingpeng Li,Tatiana Gelaf Romer & Aliyah Olaniyan, RVA - RNAseq Visualization Automation tool.
# NOT RUN {
plot_gene(data = count_table,
anno = sample_annotation)
# }
Run the code above in your browser using DataLab