This function takes a matrix and pathway csv/gmt files and input and creates expression matrices for each pathway. The resulting output is a nested list of expression matrices for each pathway by each sample.
pathway_matrices(samples, pathways, sample_names = NULL)
Expression matrix for each population, with each population
as a separate list. These matrices can be generated with e.g. SCPA::seurat_extract()
Either a gene set gmt file, csv file, or output from SCPA::format_pathways()
that contains your gene sets of interest. Information on formatting gene sets can be found
at https://jackbibby1.github.io/SCPA/articles/using_gene_sets.html.
Names of the samples to be used in the output