Skip to contents

Core Functions

Main search and database functions

gpsa_load_db()
Load GPSA Database
print(<gpsa_db>)
Print method for gpsa_db
gpsa_search()
Search with gene-set query
gpsa_search_vector()
Search with vector query (full geneList)
gpsa_batch_search()
Batch search (multiple queries at once)
gpsa_build_db()
Build GPSA HDF5 Database

Query Helpers

Functions to construct queries

gpsa_make_updown_query()
Build Up/Down query from a signature geneList
gpsa_make_updown_query_adaptive()
Adaptive Up/Down gene selection by energy
gpsa_compile_query()
Compile gene-set query
gpsa_compile_signature_vector()
Compile full geneList to vector query weights
gpsa_sparsify_query_energy()
Adaptive sparsification by energy capture

Signature Extraction

Extract and prepare signature data

gpsa_get_signature()
Extract a signature vector from the database
gpsa_pick_signature()
Pick a signature by gene and cell line
gpsa_prepare_geneList()
Prepare a geneList for GSEA/search
gpsa_collapse_duplicates_maxabs()
Collapse duplicate gene names by max absolute value

Post-processing

Score computation and result processing

gpsa_postprocess_modes()
Postprocess search results with dual-mode scoring
gpsa_compute_mode_scores()
Compute dual-mode scores (Phenocopy vs Discovery)
gpsa_attach_channel_scores()
Attach per-channel scores to result data.frame
gpsa_score_stats()
Compute score statistics
gpsa_meta_stouffer()
Meta-analysis across queries (Stouffer method)
gpsa_rank_in()
Get rank of a signature in a result data.frame

Visualization

GSEA plots and enrichment visualization

gpsa_plot_gsea()
Plot GSEA running enrichment score
gpsa_gsea_running()
Compute GSEA running enrichment score
gpsa_fgsea_updown()
GSEA-style validation with fgsea

Utilities

Configuration and helper functions

gpsa_get_h5path()
Get GPSA H5 file path
gpsa_set_h5path()
Set GPSA H5 file path
gpsa_install_deps()
Install GPSA dependencies