exportMBbed | R Documentation |
Export motifbreakR variants to bed file
exportMBbed(results, file, name = NULL, color = "effect_size")
results |
The output of |
file |
Character; the file name of the destination file |
name |
Character; name for the BED track, defaults to "motifbreakR results" |
color |
Character; one of ref_sig ( |
exportMBbed
produces an output BED file, with diverging color
scale for effect_size (blue representing stronger binding in REF
, red
representing stronger binding in ALT
), or a sequential color scale
otherwise (low values as purple, high values as yellow). The score column is
either the effect_size (alleleDiff
column), the -log10(p-value)
(capped at 10), corresponding to Refpvalue
, Altpvalue
, or the
best match of the two, or the score pctRef
, pctAlt
, or the
highest match of the two. The name column is formatted
SNP_id:REF/ALT:providerId
. Additionally a color key is returned
indicating the range of values for each color output.
See exportMBtable
for the function that exports the
full motifbreakR
results as a tab or comma separated table file.
data(example.results)
example.results
exportMBbed(example.results, file = "mb_test_output.bed", color = "effect_size")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.