View source: R/visualize_gene.R
visualize_gene | R Documentation |
Visualize expression pattern for the gene of interest in reference data and synthetic data
visualize_gene( simsrt, plotgn = NULL, ptsizeCount = 2, textsizeCount = 12, rev_y = FALSE, virOption = "D", virDirection = -1 )
simsrt |
A SRTsim object |
plotgn |
A gene name selected for visualization |
ptsizeCount |
Specification of point size. Default is 2. |
textsizeCount |
Specification of axis font size. Default is 12. |
rev_y |
Logical indicating whether to reverse the y axis. Default is FALSE. Useful for Visualize the LIBD data. |
virOption |
Specification of |
virDirection |
Specification of |
Returns two expression plots for the gene of interest
## Create a simSRT object toySRT <- createSRT(count_in=toyData$toyCount,loc_in = toyData$toyInfo) set.seed(1) ## Create New Locations within Profile toySRT2 <- srtsim_newlocs(toySRT,new_loc_num=1000) ## Estimate model parameters for data generation toySRT2 <- srtsim_fit(toySRT2,sim_schem="tissue") ## Generate synthetic data with estimated parameters toySRT2 <- srtsim_count(toySRT2,rrr=1) ## compare the expression pattern of HLA-B in synthetic data and reference data visualize_gene(simsrt=toySRT2,plotgn = "HLA-B")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.