saveGRangesAsTsv: saveGRangesAsTsv

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

save a GRanges object as tsv file.

Usage

1
2
saveGRangesAsTsv(GRanges, filepath = tempdir(), filename = tempfile(),
  force = FALSE, verbose = FALSE)

Arguments

GRanges

the GRanges object.

filepath

the path to store the files.

filename

the name to give to the files.

force

force overwriting.

verbose

verbose output flag.

Value

none

Examples

1
2
3
4
5
6
gr <- GRanges(
        seqnames=Rle(c("chr1", "chr2", "chr1", "chr3"), c(1, 3, 2, 4)),
        ranges=IRanges(1:10, end=10),
        strand=Rle(strand(c("-", "+", "*", "+", "-")), c(1, 2, 2, 3, 2)),
        seqlengths=c(chr1=11, chr2=12, chr3=13))
saveGRangesAsTsv(gr, verbose=TRUE)

DEScan2 documentation built on Nov. 8, 2020, 5:01 p.m.