write_grl_as_bed12: Save GRangesList object as BED12 file

View source: R/Utility_functions.R

write_grl_as_bed12R Documentation

Save GRangesList object as BED12 file

Description

Save GRangesList object as BED12 file

Usage

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 Oct. 3, 2023, 11:19 p.m.