Internal helper. Builds an evaluation environment from data and
evaluates each expression in mapping against it.
Usage
.resolve_mapping(data, mapping, env = parent.frame())Details
For a GRanges, the env is the union of:
positional specials:
start,end,width,midGRanges accessors:
seqnames,strand(coerced to character)the columns of
mcols(data)
For a data.frame, the env is just as.list(data) — no specials are
injected, so column names must match the user's map() references
exactly. (Link elements rely on this: BEDPE-like inputs reference their
own column names via map(x0 = start1, x1 = start2, ...).)
If mapping is NULL or data is NULL, returns list().