makeSnps: Make SNP list

Description Usage Arguments Details See Also Examples

View source: R/makeSnps_function.R


makeSnps returns a list with four elements summarizing the SNPs associated with each gene via GWAS results, eQTL databases, etc. The first element (snpRes) is a list with length corresponding to the number of candidate genes and includes all associated SNPs split by source. The second element (snpList) collpases the first so only SNPs for each gene are listed, regardless of the source. The third element (snpTable) is a dataframe with two columns: SNPs and gene names. The fourth element (snpCount) is a table with the number of elements corresponding to the number of unique SNPs in the genelist - reported for each SNP is the number of times it appears. It is sorted in descending order. The structure is similar to the makeGo and makePhenotypes functions.


makeSnps(mgl, saveFile = FALSE)



List; see buildFromNames, buildFromRegion, or buildFromEnsgs


A logical flag indicating whether a csv file ('Snps.csv') should be saved in the current directory.


This gives a summary of all SNPs associated with the gene. Based on all elements in the list containing SNP information: eqtl (element 14), sqtlSeek (element 15), sqtlAltrans (element 16), pqtl (element 17), dnase (element 21), gwasCatalog (element 18), grasp (element 19).

See Also

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


exMgl() -> myMgl
myMgl <- makeSnps(myMgl, saveFile = FALSE) -> mySnps

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