
Select an atlas's backdrop, or its regions, in a geometry verb
Source:R/core_contract.R
selectors.RdThe geometry verbs take labels and exclude as patterns, and a
backdrop has to be addressed separately from the parcels: what makes a
cortical silhouette read as a brain is its sulci, which are fine detail,
so it wants gentler simplification and a smoothing method that does not
fill them.
Details
Build scripts had been writing the pattern by hand, as "^cortex". That
is a guess about what the pipeline named the backdrop, and it was wrong
twice over: the name varies across the library – cortex_, cortex,
lh_unknown, lh_Background+FreeSurfer_Defined_Medial_Wall – and a
pattern matching nothing is silent, so those steps did nothing at all for
as long as a pipeline bug left the backdrop undrawn.
These ask the atlas instead. The lookup table decides what is backdrop when the atlas is built; this is how that decision is read back.