This function allows to output the user-defined input features expression in graphical format. Users can select x-axis as donor/participant (x_group_by='PTID') and expression on y-axis organized by variable time (var_oi='Time'). Add group facet feature like facet_by='celltype'.
gene_featureplot(
data_object = NULL,
data = NULL,
anndata = NULL,
featureList,
x_group_by = "PTID",
var_oi = "Time",
xlab = "group_by",
ylab = "Value/Expression",
ncol = NULL,
facet_by = NULL,
compare_means = FALSE,
x_text_angle = NULL,
text_font = NULL
)gene plot
Input PALMO S4 object. It contains annotation information and expression data from Bulk or single cell data.
Optional, Data can be bulk data or single cell data
Optional, Annotation dataframe consist of information such as Sample (sample name), PTID (donor/participant), Time (longitudinal timepoints)
User-defined feature or genelist as a vector
x-axis grouping variable like 'PTID'
x-axis subgrouping variable like 'Time'
x-axis label
y-axis label
Number of columns in the plot grid
A set of variables or expressions
Add mean comparison p-value in a plot (for more information refer http://rpkgs.datanovia.com/ggpubr/reference/stat_compare_means.html)
xaxis text angle on ggplot
font size on ggplot
if (FALSE) {
plots <- gene_featureplot(data_object=palmo_obj,
featureList=c('LILRA4', 'CLEC9A'))
}
Run the code above in your browser using DataLab