
Run Full Phenotype Enrichment Analysis
run_phenotype_enrichment.RdThis function takes a SHAP matrix (samples x genes) and a phenotype dataframe,
performs the perform_pheno_test for each gene and specified phenotypic variable,
and compiles the results into a tidy dataframe. It also adjusts p-values for multiple
testing within each variable and filters out any residual terms or NAs before
returning the final results. The output includes the gene, variable, test type,
p-values, and adjusted p-values for each gene-phenotype association tested.