Filter gene data based on annotations, genes, and groups supplied with group_order.

filter_gene_data(
  data,
  genes,
  anno,
  group_cols,
  group_order = NULL,
  sample_key_column = "sample_name"
)

Arguments

data

a data.frame with gene expression data and a sample_name

genes

a vector of genes to plot

anno

a data.frame of sample annotations

group_cols

a group_cols list generated by group_columns()

group_order

a set of group_ids to use for the plot. Default is NULL, which ignores filtering on this parameter.

sample_key_column

the name of the key column for sample identification. Default is "sample_name"

Value

a data.frame of data filtered based on genes, the sample_names in anno, and (if supplied) the groups in group_order.