interval_union {genomeIntervals} | R Documentation |
Compute interval set operations on "Genome_intervals"
or "Genome_intervals_stranded"
objects.
## S4 method for signature 'Genome_intervals' interval_union(x, ...) ## S4 method for signature 'Genome_intervals_stranded' interval_union(x, ...) ## S4 method for signature 'Genome_intervals' interval_complement(x) ## S4 method for signature 'Genome_intervals_stranded' interval_complement(x) ## S4 method for signature 'Genome_intervals' interval_intersection(x,...) ## S4 method for signature 'Genome_intervals_stranded' interval_intersection(x,...)
x |
A |
... |
Optionally, additional objects of the same class as |
Wrappers calling the corresponding functions of the package intervals
by
same seq_name
, inter_base
and if needed strand
. Note that the
union of single input object x
returns the reduced form of x
, i.e.
the interval representation of the covered set.
A single object of appropriate class, representing the union, complement or
intersection of intervals computed over entries with same seq_name
, inter_base
and
also strand
if all passed objects are of the class "Genome_intervals_stranded"
.
interval_union
,
interval_complement
,
interval_intersection
and
reduce
from the package intervals
.
## load toy examples data(gen_ints) ## content of i object i ## complement interval_complement(i) ## reduced form (non-overlapping interval representation of the covered set) interval_union(i) ## union interval_union(i[1:2,], i[1:4,]) # map to genome intervals and union again i.nostrand = as(i,"Genome_intervals") interval_union(i.nostrand) ## intersection with a second object # print i and j in closed interval notation close_intervals(i) close_intervals(j) # interval_intersection interval_intersection(i,j) #interval intersection non-stranded interval_intersection(i.nostrand, as(j, "Genome_intervals"))