Description Usage Arguments Details Value See Also Examples
View source: R/higher_level_functions.R
This function queries 2 or more compilations which are on the same reference version (e.g. hg38) and merges the resulting junctions into a single output table, unioning the sample coverage columns and the snaptron_id (jx ID) columns (the latter delimiter will be ":"). All sample IDs will be disjoint between compilations.
1 |
... |
One or more QueryBuilder objects |
Union is based on the following fields (combined into a comparison key):
group
chromosome
start
end
strand
The goal is to have a single list of junctions where every junction occurs in at least one compilation and if a junction occurs in > 1 compilations it still only has a single row representing all the samples across compilations that it appears in. Sample aggregate statistics will be recalculated for junctions which are merged across all samples from all compilations:
sample_count
coverage_sum
coverage_avg
coverage_median
A RangedSummarizedExperiment of junctions appearing in at least one compilation
1 2 3 4 5 6 7 8 9 10 | # 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_union(sb1, sb2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.