preGranges: filter GRanges and add flanking regions

Description Usage Arguments Value Author(s)

View source: R/Function.R

Description

filter GRanges and add flanking regions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
preGranges(
  gr,
  gene = NULL,
  chr = NULL,
  region = NULL,
  exon = TRUE,
  cds = FALSE,
  gene_name = FALSE,
  format = NULL
)

Arguments

gr

GRanges object

gene

gene name (set to NULL if specify the chromosome name and region)

chr

chromosome name

region

a vector include the start and the end location

exon

a logical value indicating whether use exon information or not

cds

a logical value indicating whether use cds information or not

gene_name

a logical value indicating whether use gene_name or not(for gtf)

format

If not missing, should be one of “gff”,“gff3” or “gtf”.

Value

GRangesInfo object include only select genes information

Author(s)

Kai Guo


guokai8/CandiHap documentation built on Nov. 26, 2021, 9:08 a.m.