Description Usage Arguments Value Examples
View source: R/QTLenrich_plot.R
Takes the output from qtl_enrich function and creates a bubble plot with enrichment results
1 | QTLenrich_plot(qtl_enrich, x, pval)
|
qtl_enrich |
The output from qtl_enrich function |
x |
Id column to be used from the qtl_enrich output |
pval |
P-value to be used in the plot. The name informed to this argument must match the p-value column name in the enrichment table |
A plot with the QTL enrichment results
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(QTLmarkers)
data(gffQTLs)
out.qtls<-find_genes_qtls_around_markers(db_file=gffQTLs,
marker_file=QTLmarkers, method = "qtl",
marker = "snp", interval = 500000,
nThreads = 1)
out.enrich<-qtl_enrich(qtl_db=gffQTLs,
qtl_file=out.qtls, qtl_type = "Name",
enrich_type = "genome", chr.subset = NULL, padj = "fdr",nThreads = 1)
out.enrich.filtered<-out.enrich[which(out.enrich$adj.pval<0.05),]
QTLenrich_plot(out.enrich.filtered, x="QTL", pval="adj.pval")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.