Collapse a higher-resolution catalog to a lower-resolution one
Source:R/catalog_transform.R
collapse_catalog.RdSupports:
SBS1536 -> SBS96: collapse pentanucleotide → trinucleotide contexts.SBS192 -> SBS96: sum across the two transcript strands.DBS144 -> DBS78: sum across the two transcript strands.
Usage
collapse_catalog(catalog, to = c("SBS96", "DBS78"))