write_grl_as_bed12: Save GRangesList object as BED12 file

Description Usage Arguments Details

View source: R/Utility_functions.R

Description

Save GRangesList object as BED12 file

Usage

1
write_grl_as_bed12(grl, filename, name_in_mcols = FALSE)

Arguments

grl

GRangesList object.

filename

Valid path to the output file.

name_in_mcols

Logical.

Details

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).


Maxim-Ivanov/TranscriptomeReconstructoR documentation built on Jan. 28, 2021, 11:47 a.m.