View source: R/higher_level_functions.R
junction_inclusion_ratio | R Documentation |
Calculates a coverage summary statistic per sample of the normalized coverage difference between two sets of separate junctions defined by at least two basic queries and organized into two groups.
junction_inclusion_ratio(group1, group2, group_names = NULL)
group1, group2 |
Each group is a list of 1 or more QueryBuilder objects |
group_names |
Optional vector of strings representing the group names |
The summary statistic is as follows: If the coverage of the first group is "A" and the second is "B":
JIR(A,B)=(A - B) / (A+B+1)
This is calculated for every sample that occurs in one or the other (or both) groups results.
A DataFrame of samples, with their JIR score and metadata, which had > 0 coverage in at least one resulting row in at least one of the groups
sb1 <- QueryBuilder(compilation = "srav2", regions = "chr2:29446395-30142858") sb1 <- set_coordinate_modifier(sb1, Coordinates$Within) sb1 <- set_row_filters(sb1, strand == "-") sb2 <- QueryBuilder(compilation = "srav2", regions = "chr2:29416789-29446394") sb2 <- set_coordinate_modifier(sb2, Coordinates$Within) sb2 <- set_row_filters(sb2, strand == "-") junction_inclusion_ratio(list(sb1), list(sb2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.