This is a convenience function, and will try to guess what you mean if you don't explicitly specify which columns to spread and what to call them. With that mind set, if we find a cpm and symbol column, we will use them because those are the thing you will likely want to use for exploratory data analysis if they're in the incoming dataset. If those columns aren't found, then we'll pick the feature_id and count column.

spread_assay_data(
  x,
  assay_name,
  key = c("name", "feature_id"),
  value = c("cpm", "value", "count"),
  .fds = fds(x)
)

Arguments

x

facile expression result from fetch_expression

key

the column from the long-form fetch_expression table to put in the columns of the outgoing data.frame that the values are "spread into"

value

the value column to spread into the key columns

.fds

the FacileDataSet

Value

a more stout x with the expression values spread across columns.