core_annotated: Genome intervals with minimal annotation

Description Usage Arguments Value Examples

Description

returns a copy of the input (stranded) genome intervals object with annotations restricted to the minimally required ones.

Usage

1

Arguments

x

A Genome_intervals or Genome_intervals_stranded object.

Value

A copy of x with the annotation slot restricted to seq_name, inter_base and strand (the latter only if x is a Genome_intervals_stranded object).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# load toy examples
data("gen_ints")

# add some non-core annotations to i
annotation(i)$comment = "some non-core annotation"

# i with all annotations
i

# core annotations only
core_annotated(i)

## Not run: 
# with different annotation columns, i and j cannot be combined
c( i, j )

## End(Not run)

# core annotated versions can
c( core_annotated(i), core_annotated(j) )

genomeIntervals documentation built on Nov. 8, 2020, 4:56 p.m.