saveGRangesAsTsv: saveGRangesAsTsv

View source: R/utilities.R

saveGRangesAsTsvR Documentation

saveGRangesAsTsv

Description

save a GRanges object as tsv file.

Usage

saveGRangesAsTsv(
  GRanges,
  filepath = tempdir(),
  filename = tempfile(),
  col.names = NA,
  row.names = TRUE,
  sep = "\t",
  force = FALSE,
  verbose = FALSE
)

Arguments

GRanges

the GRanges object.

filepath

the path to store the files.

filename

the name to give to the files.

col.names

a logical value indicating whether the column names are to be written in the file, or a character vector indicating the column names, or NA for writing column names for writing a TAB for the column name of the row names, default is NA (see write.table).

row.names

a logical value indicating whether the row names are to be written in the file, or a character vector indicating the row names (see write.table).

sep

the column separator character (default is \"\t\").

force

force overwriting.

verbose

verbose output flag.

Value

none

Examples

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)

drighelli/DEScan2 documentation built on March 21, 2023, 3:06 p.m.