View source: R/granges_to_bed.R
granges_to_bed | R Documentation |
Convert GRanges object to BED format and save as a text file.
granges_to_bed(
grlist,
save_dir = tempdir(),
sep = "\t",
nThread = 1,
gzip = FALSE,
verbose = TRUE
)
grlist |
A list of GRanges objects. Can also be a single non-list GRanges object. |
save_dir |
Where to save the BED file. |
sep |
The separator between columns. Default is |
nThread |
The number of threads to use. Experiment to see what works best for your data on your hardware. |
gzip |
Whether the BED file should be gzip compressed. |
verbose |
Print messages. |
gr <- echodata::dt_to_granges(dat = echodata::BST1)
bed_path <- echodata::granges_to_bed(grlist = gr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.