Description Usage Arguments Details Value Author(s) Examples
This function reports per trait number of reported genomic region~gene~trait from two different objects.
1 2 | compareReg2Traits(interactionsTraits, interactionsTraits2,
traitID = c("Trait", "Trait"), naming = c("Trait1", "Trait2"))
|
interactionsTraits |
A GInteractions object, likely produced by
[ |
interactionsTraits2 |
A GInteractions object, likely produced by
[ |
traitID |
character vector of length 2 which stores information about column names where trait info are stored for both input objects. By default c("Trait","Trait") |
naming |
a character vector (default: c("Traits1,"Trait2"). Column names in the output object. |
For each trait that is present in at least one of the interactionsTraits
GInteractions objects report how many associated genes is present in the
first GInteractions object, and how many is present in the 2nd
GInteractions object. It allows an easy identification of traits for which
[reg2gene
] analysis improved number of disease
associated genes.
a matrix with rows corresponding to traits, and two columns with info about gene counts for these traits. Each column gathers info from one interactionsTraits GInteractions object (variant~gene interactions + trait association stored as meta-data).
Inga Patarcic
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | library(GenomicRanges)
library(InteractionSet)
# 1. creating interaction object 1 with added diseases
GRReg1_toyDisease <- GRReg1_toy
GRReg1_toyDisease$disease <- paste0("dis",c(1,1,3:(length(GRReg1_toy))))
# 2. creating interaction object 2 with added diseases
GRReg2_toyDisease <- GRReg2_toy
GRReg2_toyDisease$disease <- paste0("dis",1:length(GRReg2_toy))
# comparing them with compareReg2Traits
compareReg2Traits(interactionsTraits=GRReg1_toyDisease,
interactionsTraits2=GRReg2_toyDisease,
traitID=c("disease","disease"),
naming=c("Trait1","Trait2"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.