write_bed | R Documentation |
data.table
to fileCan be a plain text file or a BGZIP file.
write_bed( x, file_path, tabix_index = TRUE, batch_size = NULL, comments = NULL, ... )
x |
A |
file_path |
Path of the output file. If the extension name is |
tabix_index |
If |
batch_size |
An positive integer. Write file in batches. During each
batch, only write up to |
comments |
A character vector, which will be written to the top of the file as header lines. |
... |
Other arguments passed to methods. Compliant with |
bedtbl <- read_bed(system.file("extdata", "example_merge.bed", package = "bedtorch")) # Write data to uncompressed file write_bed(bedtbl, tempfile(fileext = ".bed")) # Write data to file and create tabix index write_bed(bedtbl, tempfile(fileext = ".bed.gz"), tabix_index = TRUE) # Write data to uncompressed file, with header lines write_bed(bedtbl, tempfile(fileext = ".bed"), comments = c("Author: X", "Date: N/A"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.