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

Description Usage Arguments Details

View source: R/Utility_functions.R

Description

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

Usage

1
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 Jan. 28, 2021, 11:47 a.m.