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)
buildFromNames
, buildFromRegion
, or buildFromEnsgs
makeAeiPlot
,
makeCoXpGene
,
makeCoXpTranscript
,
makeDnaseSig
, makeGoSearch
,
makeGo
, makeMultiEqtl
,
makeOverlapTable
,
makeOverlap
,
makePhenotypeSearch
,
makePhenotypes
,
makeSnpSearch
, makeSummary
exMgl() -> myMgl
myMgl <- makeSnps(myMgl, saveFile = FALSE) -> mySnps
Run the code above in your browser using DataLab