View source: R/Utility_functions.R
write_grl_as_bed12 | R Documentation |
Save GRangesList object as BED12 file
write_grl_as_bed12(grl, filename, name_in_mcols = FALSE)
grl |
|
filename |
Valid path to the output file. |
name_in_mcols |
Logical. |
This function does the same work as rtracklayer::export(format = "BED")
,
with the added benefit that the S4Vectors::mcols(grl)$score
is properly exported.
If name_in_mcols == TRUE
, then the S4Vectors::mcols(grl)$name
is exported as range names (otherwise the names(grl)
is used).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.