gvtrack.iterator.2d: Defines modification rules for a two-dimensional iterator in...

View source: R/vtrack.R

gvtrack.iterator.2dR Documentation

Defines modification rules for a two-dimensional iterator in a virtual track

Description

Defines modification rules for a two-dimensional iterator in a virtual track.

Usage

gvtrack.iterator.2d(
  vtrack = NULL,
  sshift1 = 0,
  eshift1 = 0,
  sshift2 = 0,
  eshift2 = 0
)

Arguments

vtrack

virtual track name

sshift1

shift of 'start1' coordinate

eshift1

shift of 'end1' coordinate

sshift2

shift of 'start2' coordinate

eshift2

shift of 'end2' coordinate

Details

This function defines modification rules for one-dimensional iterator intervals in a virtual track.

Iterator interval's 'start1' coordinate is modified by adding 'sshift1'. Similarly 'end1', 'start2', 'end2' coordinates are altered by adding 'eshift1', 'sshift2' and 'eshift2' accordingly.

Value

None.

See Also

gvtrack.create, gvtrack.iterator

Examples



gdb.init_examples()
gvtrack.create("vtrack1", "rects_track")
gvtrack.iterator.2d("vtrack1", sshift1 = 1000, eshift1 = 2000)
gextract(
    "rects_track", "vtrack1",
    gintervals.2d(1, 0, 5000, 2, 0, 5000)
)


misha documentation built on Sept. 14, 2023, 5:08 p.m.