FormatTrack: Prepare Input for Creating Coverage Plot.

View source: R/FormatInput.R

FormatTrackR Documentation

Prepare Input for Creating Coverage Plot.

Description

Prepare Input for Creating Coverage Plot.

Usage

FormatTrack(
  data,
  region = "chr14:21,677,306-21,737,601",
  gtf.gr = NULL,
  gene.name = "HNRNPC",
  gene.name.type = c("gene_name", "gene_id"),
  extend = 2000
)

Arguments

data

Track dataframe loaded by LoadTrackFile.

region

Region used to create coverage plot, eg: chr14:21,677,306-21,737,601 or chr14:21,677,306. Default: NULL.

gtf.gr

Granges object of GTF, created with import.gff. Default: NULL.

gene.name

The name of gene. Default: HNRNPC.

gene.name.type

Gene name type (filed of gtf.gr), chosen from gene_name and gene_id. Default: gene_name.

extend

Extend length of region. Default: 2000.

Value

A dataframe.


ggcoverage documentation built on Sept. 6, 2022, 9:06 a.m.