Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/garfield.plot.R
garfield.plot
is used for visualization of the enrichment
analysis results obtained by the garfield.run
permutation
step. Internally, it uses garfield.plot.fnx
which has been
adapted from the 'radial.plot' function from the 'plotrix' package.
1 2 | garfield.plot(input_file, num_perm = 100000, output_prefix = "plot",
plot_title = "", filter = 10, tr = Inf)
|
input_file |
Input file name as produced by garfield.run permutation step. |
num_perm |
Number of permutations used in the garfield.run permutation step. |
output_prefix |
Figure file prefix. This would create the following files output_prefix.Chromatin_States.pdf, output_prefix.Footprints.pdf, output_prefix.Histone_Modifications.pdf, output_prefix.Peaks.pdf, output_prefix.FAIRE.pdf, output_prefix.Genic.pdf, output_prefix.Hotspots.pdf and output_prefix.TFBS.pdf |
plot_title |
Optional figure title |
filter |
Optional filter for the minimum number of variants at a given threshold. Minimum of 1 should be used, but advisable to set to a larger value (e.g. 10). |
tr |
Threshold for denoting significance of an observed enrichment on a -log10 scale. A value of Inf denotes using default threshold of -log10(0.05/498). |
This function is used for visualization of the enrichment analysis results and produces pdf figures for each class of annotations. Each figure shows the FE values (radial values) at different GWAS thresholds (bottom legend) for each annotation (outer circle and right legend). It further shows the significance at the top 4 GWAS thresholds (if present) as dots on the outer circle, with the most stringent threshold being shown at the inner most side.
No value is produced, instead output files are generated. See Details and 'output_prefix' for more information.
Sandro Morganella <email: sm22@sanger.ac.uk>
Maintainer: Valentina Iotchkova <email: vi1@sanger.ac.uk>
Valentina Iotchkova, Graham Ritchie, Matthias Geihs, Sandro Morganella, Josine Min, Klaudia Walter, Nicholas Timpson, UK10K Consortium, Ian Dunham, Ewan Birney and Nicole Soranzo. GARFIELD - GWAS Analysis of Regulatory or Functional Information Enrichment with LD correction. In preparation
garfield.run
, garfield
,
garfield.plot.fnx
1 2 3 4 5 6 7 8 9 10 11 12 13 | garfield.run("tmp", data.dir=system.file("extdata",package = "garfield"),
trait="trait",run.option = "prep", chrs = c(22),
exclude = c(895, 975, 976, 977, 978, 979, 98))
garfield.run("tmp", data.dir=system.file("extdata",package = "garfield"),
trait="", run.option = "perm", nperm = 1000,
thresh = c(0.001, 1e-04, 1e-05), pt_thresh = c(1e-04, 1e-05),
maf.bins = 2, tags.bins = 3, tss.bins = 3, prep.file = "tmp.prep",
optim_mode = TRUE, minit = 100, thresh_perm = 0.05)
garfield.plot("tmp.perm", num_perm = 1000, output_prefix = "tmp",
plot_title = "Sample run", filter = 1, tr = -log10(0.05))
#system("ls -lh tmp.*.pdf")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.