makeOverlap: Returns SNPs that appear in two user-defined groups for a...

Description Usage Arguments Details See Also Examples

View source: R/makeOverlap_function.R

Description

makeSummary returns a list with the first element (named overlap) being a list corresponding to the number of genes in mgl with each element as a vector of SNPs that overlap between the two user-defined groups. The second two elements (named snpsA and snpsB)are the user-defined groups

Usage

1
2
3
4
makeOverlap(mgl, snpsA = c("transEqtls", "cisEqtls", "sqtlSeek",
  "sqtlAltrans", "pqtl", "dnase", "gwasCatalog", "grasp"),
  snpsB = c("transEqtls", "cisEqtls", "sqtlSeek", "sqtlAltrans", "pqtl",
  "dnase", "gwasCatalog", "grasp"), saveFile = FALSE)

Arguments

mgl

List; see buildFromNames, buildFromRegion, or buildFromEnsgs

snpsA

A character vector indicating which elements of mgl should be used to define group A - any combination of 'eqtl', 'sqtlSeek', 'sqtlAltrans', 'pqtl', 'dnase', 'gwasCatalog', 'grasp'

snpsB

A character vector indicating which elements of mgl should be used to define group B - any combination of 'eqtl', 'sqtlSeek', 'sqtlAltrans', 'pqtl', 'dnase', 'gwasCatalog', 'grasp'

saveFile

A logical flag indicating whether a csv file ('Overlap[groups].csv') should be saved in the current directory

Details

Provides a character vector of SNPs for each gene that appear in two different groups as defined by the user. These groups can be built from any element in mgl containing SNP information: eqtl, sqtlSeek, sqtlAltrans, pqtl, dnase, gwasCatalog, grasp. Can be used to determine those SNPs that appear as both regulatory variants and trait associated variants, for example.

See Also

Other output: makeAeiPlot, makeCoXpGene, makeCoXpTranscript, makeDnaseSig, makeGoSearch, makeGo, makeMultiEqtl, makeOverlapTable, makePhenotypeSearch, makePhenotypes, makeSnpSearch, makeSnps, makeSummary

Examples

1
2
exMgl() -> myMgl
makeOverlap(myMgl, snpsA = c('cisEqtls'), snpsB = c('gwasCatalog'), saveFile = TRUE) -> myOverlap

mglR documentation built on May 29, 2017, 4:07 p.m.