Skip to contents

Remove sites with multiple variant bases from a SummarizedExperiment. rowData() gains a new column, ALT, that contains the variant allele detected at each site.

Usage

filter_multiallelic(se)

Value

SummarizedExperiment::SummarizedExperiment with multiallelic sites removed. A new column,ALT will be added to rowData() indicating the single allele present at the site.

See also

Examples

rse_adar_ifn <- mock_rse()
filter_multiallelic(rse_adar_ifn)
#>  `filter_multiallelic()`: removed 2 sites from 74 (72 remain)
#> class: RangedSummarizedExperiment 
#> dim: 72 2 
#> metadata(0):
#> assays(7): ALT nRef ... nC nG
#> rownames(72): site_SSR3_102_2 site_SSR3_125_2 ... site_DHFR_430_2
#>   site_DHFR_513_2
#> rowData names(5): REF rpbz vdb sor ALT
#> colnames(2): wt adar1_ko
#> colData names(1): sample