Title: | Gene Set Analysis of (Rare) Copy Number Variants |
---|---|
Description: | This package is intended to facilitate gene-set association with rare CNVs in case-control studies. |
Authors: | Daniele Merico <[email protected]>, Robert Ziman <[email protected]>; packaged by Joseph Lugo <[email protected]> |
Maintainer: | Joseph Lugo <[email protected]> |
License: | LGPL |
Version: | 1.51.0 |
Built: | 2024-11-29 05:40:00 UTC |
Source: | https://github.com/bioc/cnvGSA |
cnvGSA is an R package for testing the rare gene-set variant burden in case-control studies of copy number variation (CNV).
In cnvGSA, subjects are treated as statistical sampling units. Subject-level covariates that may act as confounders can be provided by the user (e.g. sex, ethnicity, CNV genotyping platform, CNV genotyping site, array quality metrics, etc.). The gene-set burden is tested using a logistic regression approach. Two logistic regression models are fit: model A includes the subject-level covariates and a variable quantifying global CNV burden for each subject (total CNV length, or total number of CNV-overlapped genes per subject, etc.); model B includes all variables present in model A, plus the number of CNV-overlapped genes that are members of the gene-set being tested. Presence of significantly higher burden in cases compared to controls for the gene-set of interest is then tested by comparing the two models using a deviance chi-square test, as implemented by anova.glm.
Daniele Merico [email protected], Robert Ziman [email protected]; packaged by Joseph Lugo [email protected]
Creates the gene-set tables for each gene-set.
cnvGSAgsTables(cnvGSA.in, cnvGSA.out)
cnvGSAgsTables(cnvGSA.in, cnvGSA.out)
cnvGSA.in |
A CnvGSAInput S4 object. |
cnvGSA.out |
A CnvGSAOutput S4 object. |
A list where each object is a table corresponding to one gene-set.
library(cnvGSAdata) data(cnvGSA_output_example) ## See vignette for full details and worked example
library(cnvGSAdata) data(cnvGSA_output_example) ## See vignette for full details and worked example
Creating the input S4 object needed to run the script.
cnvGSAIn(configFile, cnvGSA.in)
cnvGSAIn(configFile, cnvGSA.in)
configFile |
The file name for the config file including the full path. |
cnvGSA.in |
A CnvGSAInput S4 object. |
A cnvGSAInput S4 object.
library(cnvGSAdata) data(cnvGSA_input_example) ## See vignette for full details and worked example
library(cnvGSAdata) data(cnvGSA_input_example) ## See vignette for full details and worked example
"CnvGSAInput"
Container class for the input structures required by the main function (i.e. cnvGSALogRegTest()).
config.ls
:Object of class "list"
containing the file names and paths.
params.ls
:Object of class "list"
containing the test parameters.
cnvData.ls
:Object of class "list"
containing CNV data.
phData.ls
:Object of class "list"
containing phenotype and covariate data.
gsData.ls
:Object of class "list"
containing gene-set data.
geneID.ls
:Object of class "list"
containing Gene ID data.
CnvGSAInput( config.ls, params.ls, cnvData.ls, phData.ls, gsData.ls, geneID.ls)
:
Creates a CnvGSAInput object.
config.ls
Structure containing the file names and paths.
params.ls
Structure containing main test parameters.
cnvData.ls
Structure containing CNV data along with sample-to-class information and filters.
phData.ls
Structure containing phenotype and covariate data.
gsData.ls
Structure containing gene-set data.
geneID.ls
Structure containing Gene ID data.
See the vignette for complete details on each of these structures as well as a full example of how to load them.
signature(obj = "CnvGSAInput")
: Gets config.ls
.
signature(obj = "CnvGSAInput")
: Sets config.ls
.
signature(obj = "CnvGSAInput")
: Gets params.ls
.
signature(obj = "CnvGSAInput")
: Sets params.ls
.
signature(obj = "CnvGSAInput")
: Gets cnvData.ls
.
signature(obj = "CnvGSAInput")
: Sets cnvData.ls
.
signature(obj = "CnvGSAInput")
: Gets phData.ls
.
signature(obj = "CnvGSAInput")
: Sets phData.ls
.
signature(obj = "CnvGSAInput")
: Gets gsData.ls
.
signature(obj = "CnvGSAInput")
: Sets gsData.ls
.
signature(obj = "CnvGSAInput")
: Gets geneID.ls
.
signature(obj = "CnvGSAInput")
: Sets geneID.ls
.
Joseph Lugo [email protected]
## See vignette for full details and worked example
## See vignette for full details and worked example
This test uses 4 different correction models and requires a case control study. It looks at odds ratios and calculates statistics for the gene-set collection.
cnvGSAlogRegTest(cnvGSA.in, cnvGSA.out)
cnvGSAlogRegTest(cnvGSA.in, cnvGSA.out)
cnvGSA.in |
A CnvGSAInput S4 object. |
cnvGSA.out |
A CnvGSAOutput S4 object. |
A list of one or two objects depending on whether or not the user includes the known loci in the analysis. Each object in the list contains the regression results for each gene set.
library(cnvGSAdata) data(cnvGSA_output_example) ## See vignette for full details and worked example
library(cnvGSAdata) data(cnvGSA_output_example) ## See vignette for full details and worked example
"CnvGSAOutput"
Container class for the output structures produced by the main function (i.e. cnvGSAlogRegTest()).
phData.ls
:Object of class "list"
containing phenotype and covariate data.
res.ls
:Object of class "list"
containing burden analysis results for gene-sets.
gsTables.ls
:Object of class "list"
containing the gene-set tables.
gsData.ls
:Object of class "list"
containing gene-set data.
signature(obj = "CnvGSAOutput")
: Gets gsTables.ls
.
signature(obj = "CnvGSAOutput")
: Gets res.ls
.
signature(obj = "CnvGSAOutput")
: Gets phData.ls
.
signature(obj = "CnvGSAOutput")
: Gets gsData.ls
.
Joseph Lugo [email protected]
## See vignette for full details and worked example
## See vignette for full details and worked example
Prepares the files for the enrichment maps.
f.enrFiles(cnvGSA.in, cnvGSA.out)
f.enrFiles(cnvGSA.in, cnvGSA.out)
cnvGSA.in |
A CnvGSAInput S4 object. |
cnvGSA.out |
A CnvGSAOutput S4 object. |
Returns a list with the data frames of the GMT file and the generic file.
## See vignette for full details and worked example
## See vignette for full details and worked example
Creates the plots from the CnvGSAOutput data.
f.makeViz(cnvGSA.in, cnvGSA.out)
f.makeViz(cnvGSA.in, cnvGSA.out)
cnvGSA.in |
A CnvGSAInput S4 object. |
cnvGSA.out |
A CnvGSAOutput S4 object. |
Creates the plots to better understand the output.
## See vignette for full details and worked example
## See vignette for full details and worked example
This function is used to read in all the values from the config file and change them in the S4 objects used throughout the scripts. If you would like to reload the config values, you will want to run this function.
f.readConfig(configFile, cnvGSA.in)
f.readConfig(configFile, cnvGSA.in)
configFile |
The file name and full path for the config file. |
cnvGSA.in |
A CnvGSAInput S4 object. |
A CnvGSAInput object with the updated config.ls and params.ls objects.
library(cnvGSAdata) data(cnvGSA_input_example) ## See vignette for full details and worked example
library(cnvGSAdata) data(cnvGSA_input_example) ## See vignette for full details and worked example