genomeSegment-class {rtracklayer} | R Documentation |
An object representing a segment of a genome.
Objects are normally created by a call of the following form:
genomeSegment(genome, chrom, start, end, segment)
. All
parameters are optional and correspond to slots of the new
genomeSegment
instance, except for the segment
parameter,
which serves as the base for the new instance. The slots of the new
segment match those of segment
, unless the call specifies other
parameters, which override the corresponding slots in segment
.
genome
:"character"
giving the
name of the genome (e.g. "hg18"). chrom
:"character"
giving the
chromosome name (e.g. "chr22"). start
:"numeric"
indicating the
start position of the segment on the chromosome.end
:"numeric"
indicating the
stop position of the segment on the chromosome. merge(x, y)
x
, except the non-empty slots in
y
override those from x
.
genome(object)
genome(object) <- value
chrom(object)
chrom
osome identifier.
chrom(object) <- value
chrom
osome identifier.
start(object)
start(object) <- value
end(object)
end(object) <- value
object / x
x
times (expand segment by x/2
on each
side).
object * x
x
times (contract segment by x/2
on each
side).
Michael Lawrence
genomeSegment
for obtaining instances of this class.