Description Usage Arguments Details See Also Examples
View source: R/makePhenotypes_function.R
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.
1 | makePhenotypes(mgl, saveFile = FALSE)
|
mgl |
List; see |
saveFile |
A logical flag indicating whether a csv file ('Phenotypes.csv') should be saved in the current directory. |
This gives a summary of all traits associated with the gene in the NHGRI-EBI GWAS catalog and GRASP.
Other output: makeAeiPlot
,
makeCoXpGene
,
makeCoXpTranscript
,
makeDnaseSig
, makeGoSearch
,
makeGo
, makeMultiEqtl
,
makeOverlapTable
,
makeOverlap
,
makePhenotypeSearch
,
makeSnpSearch
, makeSnps
,
makeSummary
1 2 | exMgl() -> myMgl
myPhenotypes <- makePhenotypes(myMgl, saveFile = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.