junction_intersection: Get the intersection of junctions from 2 or more compilations...

View source: R/higher_level_functions.R

junction_intersectionR Documentation

Get the intersection of junctions from 2 or more compilations which are on the same reference

Description

This function operates similar to the junction_union() function, i.e it is cross compilation and merging of the same junction from multiple compilations will be handled exactly the same way. But instead of every junction which appears in at least one compilation, only the junctions which appear in every compilation will be returned.

Usage

junction_intersection(...)

Arguments

...

One or more QueryBuilder objects

Value

A RangedSummarizedExperiment of junctions common across compilations

See Also

junction_union()

Examples

# Using query builder wrappers
sb1 <- QueryBuilder(compilation = "gtex", regions = "chr1:1879786-1879786")
sb1 <- set_coordinate_modifier(sb1, Coordinates$EndIsExactOrWithin)
sb1 <- set_row_filters(sb1, strand == "-")

sb2 <- QueryBuilder(compilation = "tcga", regions = "chr1:1879786-1879786")
sb2 <- set_coordinate_modifier(sb2, Coordinates$EndIsExactOrWithin)
sb2 <- set_row_filters(sb2, strand == "-")

junction_intersection(sb1, sb2)

langmead-lab/snapr documentation built on May 4, 2022, 7:41 p.m.