annotate_to_genomic_features: simple annotation to genomic features

Description Usage Arguments Details Examples

View source: R/genomic_region_annotation.R

Description

simple annotation to genomic features

Usage

1
2
annotate_to_genomic_features(gr, genomic_features,
    name = NULL, type = c("percent", "number"), prefix = "overlap_to_", ...)

Arguments

gr

a GRanges object

genomic_features

a single GRanges object or a list of GRanges objects

name

names for the genomic features if there is no name in genomic_features

type

How to calculate the values for the annotation. 'number' means numbers of genomic features that each region in gr overlap; 'percent' means the percent of each region in gr that is overlapped by genomic features

prefix

prefix for names of the annotation columns

...

pass to countOverlaps or percentOverlaps

Details

it adds new columns in gr which tell you how gr is overlaped by each of genomic_features

Note for the annotation strand information is ignored

Examples

1
2
# There is no example
NULL

jokergoo/cotools documentation built on May 18, 2017, 6:05 a.m.