setId.Layout: Sets the id of one or more spots

Description Usage Arguments Author(s) See Also Examples

Description

Sets the id of one or more spots given their indices.

Usage

1
2
## S3 method for class 'Layout'
setId(this, id, index=NULL, ...)

Arguments

id

A vector of ids.

index

A vector of indices indicating which ids to set. If NULL, all ids are set.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

*getId(). For more information see Layout.

Examples

1
2
3
4
5
6
7
  SMA$loadData(c("mouse.setup", "mouse.gnames"))
  layout <- as.Layout(mouse.setup, id=mouse.gnames)

  setId(layout, c("2412r", "2414r"), c(2412, 2414))

  # Get the id of spot # 2453
  getId(layout, c(2453, 2412:2417))

HenrikBengtsson/aroma documentation built on May 7, 2019, 12:56 a.m.