makePhenotypes returns a list with four elements summarizing the traits or phenotypes associated with each gene via GWAS results reported in both the GWAS catalog and GRASP. The first element (phenRes) is a list with length corresponding to the number of candidate genes and includes all GWAS-based phenotypes split by source: NHGRI-EBI GWAS Catalog and GRASP. The second element (phenList) collpases the first so only phenotypes for each gene are listed, regardless of the source. The third element (phenTable) is a dataframe with two columns: Phenotypes and gene names. The fourth element (phenCount) is a table with the number of elements corresponding to the number of unique phenotypes in the genelist - reported for each phenotype is the number of times it appears. It is sorted in descending order. The structure is similar to the makeGo and makeSnps functions.
makePhenotypes(mgl, saveFile = FALSE)buildFromNames, buildFromRegion, or buildFromEnsgsmakeAeiPlot,
makeCoXpGene,
makeCoXpTranscript,
makeDnaseSig, makeGoSearch,
makeGo, makeMultiEqtl,
makeOverlapTable,
makeOverlap,
makePhenotypeSearch,
makeSnpSearch, makeSnps,
makeSummary
exMgl() -> myMgl
myPhenotypes <- makePhenotypes(myMgl, saveFile = FALSE)
Run the code above in your browser using DataLab