
VISTA Function Reference
VISTA Team
VISTA-reference.RmdOverview
This reference vignette summarizes the VISTA API with argument
details. It is intended as a high‑level map of functions and parameters.
For authoritative signatures, run ?function_name in R (or
open the generated Rd page) for the current version.
Core construction
create_vista()
Creates a VISTA object and runs DE analysis.
Arguments:
-
counts: Raw counts (matrix/data.frame) with a gene ID column + sample columns. -
sample_info: Sample metadata withsample_namesor matching rownames. -
column_geneid: Column name incountsthat holds gene identifiers. -
group_column: Column insample_infoused to group samples. -
group_numerator: Numerator group(s) for comparisons. -
group_denominator: Denominator group(s), same length/order as numerator. -
method:"deseq2"(default),"edger","limma", or"both". -
min_counts: Minimum total counts per gene to retain. -
min_replicates: Minimum samples per group meetingmin_counts. -
log2fc_cutoff: Absolute LFC threshold for DEG calling. -
pval_cutoff: P‑value cutoff. -
p_value_type:"padj"or"pvalue"(forcreate_vista()this controls DE calling across all methods). -
covariates: Optional additive covariate columns fromsample_info. -
design_formula: Optional explicit design formula includinggroup_column. -
consensus_mode: Formethod = "both","intersection"or"union". -
consensus_log2fc: For consensus tables, howlog2fcis populated. -
result_source: Active DE source ("consensus","deseq2","edger","limma"). -
group_palette: Colorspace palette name for group colors. -
comparison_palette: Palette name for comparison colors. -
validate: Run full object validation before return.
as_vista()
Advanced constructor for converting a pre-existing
SummarizedExperiment.
Arguments:
-
se: InputSummarizedExperiment. -
assay_name: Assay to use as normalized expression matrix. -
group_column: Grouping column name incolData(se). -
comparisons: Named list of DE tables. -
deg_summary: Named list of summary tables. -
cutoffs: Named list of thresholds. -
group_palette: Group palette name. -
validate: Run validation before returning.
Accessors
-
comparisons(x, source = "active"): DE results list (active or method-specific source). -
deg_summary(x, source = "active"): DEG summary list (active or method-specific source). -
cutoffs(x): DE threshold list. -
norm_counts(x, summarise = FALSE): Normalized counts (optionally by group). -
sample_info(x): Sample metadata. -
row_data(x): Feature metadata. -
group_colors(x): Named group colors. -
group_palette(x): Palette name. -
set_de_source(x, source): Switch active DE source used by plotting functions. -
set_vista_group_colors(x, color_map): Set manual named group colors. -
set_vista_comparison_colors(x, color_map): Set manual named comparison colors.
DE wrappers
-
run_deseq_analysis(...): DESeq2 pipeline; arguments mirrorcreate_vista(). -
run_edger_analysis(...): edgeR pipeline; arguments mirrorcreate_vista(). -
run_limma_analysis(...): limma-voom pipeline; arguments mirrorcreate_vista().
Expression matrices
get_expression_matrix()
Arguments:
-
x: VISTA object. -
assay_name: Assay to extract (default"norm_counts"). -
genes: Optional gene IDs to keep. -
samples: Optional sample IDs (or group labels whensummarise = TRUE). -
group_column: Grouping column for summarization. -
summarise: Average replicates per group whenTRUE. -
transform:"none","log2", or"zscore".
Expression plots
get_expression_boxplot()
Arguments:
-
x,genes,sample_group,group_column,facet,log_transform. -
display_id,display_from,display_orgdb. -
facet_scales,stats_group,p.label,comparisons. -
pool_genes,x_by,facet_by,fill_by.
Notes: genes capped at 20 when provided. If
facet_by = "gene" and genes is NULL, top 20
variable genes are selected automatically.
get_expression_barplot()
Arguments:
-
x,genes(≤10),sample_group,group_column,log_transform. -
stats_group,facet_scale,p.label,comparisons. -
display_id,display_from,display_orgdb.
get_expression_lollipop()
Arguments:
-
x,genes(≤15),sample_group,group_column,log_transform. -
facet_scale,point_size,line_size,label,label_digits. -
display_id,display_from,display_orgdb.
Dimensionality reduction
Correlation plots
-
get_pairwise_corr_plot(...): GGally ggpairs for selected samples/genes. -
get_corr_heatmap(...): correlation heatmap (with optional clustering).
DEG summaries and comparison plots
-
get_deg_count_barplot(...): DEG counts by comparison/regulation. -
get_deg_count_pieplot(...): circular DEG composition summary (pie). -
get_deg_count_donutplot(...): circular DEG composition summary (donut). -
get_deg_venn_diagram(...): overlap of DEG sets (2–4 comparisons). -
plot_deg_alluvial(...): transitions of regulation across comparisons.
Volcano/MA
-
get_volcano_plot(...): volcano plot with optional label mapping. -
get_ma_plot(...): MA plot with optional label mapping.
Common label arguments: display_id,
display_from, display_orgdb.
Fold change utilities
-
get_foldchange_matrix(...): log2FC matrix for comparisons. -
get_foldchange_heatmap(...): heatmap of log2FC. -
get_foldchange_lineplot(...): line plot across comparisons. -
get_foldchange_boxplot(...): distribution across comparisons. -
get_foldchange_barplot(...): barplot for selected genes. -
get_foldchange_scatter(...): comparison‑comparison scatter with concordance colors.
Enrichment
-
enrichMsigDB(...): base ORA using MSigDB. -
get_msigdb_enrichment(...): convenience wrapper for VISTA comparisons. -
get_go_enrichment(...): GO ORA for a comparison. -
get_kegg_enrichment(...): KEGG ORA for a comparison. -
get_gsea(...): GSEA for MSigDB/GO/KEGG. -
get_enrichment_plot(...): dot plot of enrichment results. -
get_pathway_genes(...): extract per-pathway genes from enrichment outputs. -
get_pathway_heatmap(...): visualize pathway-derived genes withget_expression_heatmap(...). -
get_enrichment_chord(...): chord diagram of gene–pathway relationships (requires circlize); supportsgene_order_by = "foldchange"or"abs_foldchange".
Deconvolution
-
run_cell_deconvolution(...): xCell2 workflow. -
get_cell_fractions(x): retrieve stored fractions. -
plot_celltype_barplot(...): stacked composition plot with top-N selection/collapse options. -
get_celltype_group_dotplot(...): group-level summary (mean/median) with optional sample points. -
get_celltype_heatmap(...): sample-by-cell-type heatmap with transform/clustering controls.