save_GRanges_as_bedGraph: Save stranded GRanges object as bedGraph file with strand...

View source: R/Utility_functions.R

save_GRanges_as_bedGraphR Documentation

Save stranded GRanges object as bedGraph file with strand info encoded in the sign of values

Description

Save stranded GRanges object as bedGraph file with strand info encoded in the sign of values

Usage

save_GRanges_as_bedGraph(gr, filepath, colname = "score")

Arguments

gr

GRanges object with a numeric column in mcols.

filepath

Valid path to the output file.

colname

Character (must match the name of the numeric column).

Details

This function saves a gzipped bedGraph file which contains both positive and negative values (to visualize the coverage of forward and reverse strands in a genome browser).


Maxim-Ivanov/TranscriptomeReconstructoR documentation built on Oct. 3, 2023, 11:19 p.m.