Description Usage Arguments Details Author(s) Examples
View source: R/GenCAT_functions.R
This function will create a Manhattan Plot from output of GenCAT
function
1 2 3 | GenCAT_manhattan(GenCATout, sigThresh = NULL, highlightPosi = FALSE,
labelPosi = FALSE, sepChr = 8e+05,
plotTitle = "Manhattan Plot of GenCAT Results")
|
GenCATout |
An object of class, |
sigThresh |
P-value threshold to highlight classes with strong signal from GenCAT test |
highlightPosi |
logical. If |
labelPosi |
logical. If |
sepChr |
Specifies the space to put between chromosomes on the plot. |
plotTitle |
Character expression for plot title. |
GenCATtest
is the class of the output of the GenCAT
function.
Eric Reed, Sara Nunez, Jing Qian, Andrea Foulkes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ###############
#Running GenCAT
###############
data("CardioMapped")
#Subset CardioMapped to decrease CPU time
CardioMappedSub<-CardioMapped[CardioMapped$chr < 15,]
set.seed(1)
CardioMappedSub<-CardioMappedSub[sample(1:nrow(CardioMappedSub), 100),]
library(snpStats)
data('geno')
genoData<-geno$genotypes
snpInfo<-geno$map
colnames(snpInfo)<-c('chr', 'SNP', 'gen.dist', 'position', 'A1', 'A2')
print(head(snpInfo))
GenCATtest <- GenCAT(CardioMappedSub, genoData=genoData, snpInfo = snpInfo)
######################
#Create Manhattan Plot
######################
print(str(GenCATtest))
GenCAT_manhattan(GenCATtest, sigThresh = (0.05/nrow(GenCATtest$GenCAT)),
highlightPosi = TRUE, labelPosi = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.