c {genomeIntervals}R Documentation

Combine genome intervals objects

Description

S3 methods for combining several genome intervals into a single one.

Usage

## S3 method for class 'Genome_intervals':
c(...)
## S3 method for class 'Genome_intervals_stranded':
c(...)

Arguments

... Genome_intervals or Genome_intervals_stranded objects.

Details

If the arguments have mixed classes ( both Genome_intervals or Genome_intervals_stranded), then they are coerced to Genome_intervals before combination. Otherwise, the common class is used.

Value

A single Genome_intervals or Genome_intervals_stranded object. Input objects are combined in their order of appearance in the the argument list.
If any input argument is not a Genome_intervals, list(...) is returned instead.

Note

These methods will be converted to S4 once the necessary dispatch on ... is supported.

Examples

# load toy examples
data("gen_ints")
    
# combine i and j returns a Genome_intervals_stranded object
c( i, j )
    
# combine a not-stranded and a stranded returns a not-stranded object
c( as(i, "Genome_intervals"), j )

[Package genomeIntervals version 1.0.1 Index]