setRowAttr | R Documentation |
Set rowData attribute of given rows
setRowAttr(se, values, name = "cluster", clear = TRUE, other = NA)
se |
A 'SummarizedExperiment' object |
values |
A named vector of values, where the names correspond to rows of 'se' |
name |
The name of the rowData column in which to store the attribute. |
clear |
Logical; whether to clear out any pre-existing such column. |
other |
The value for unspecified rows (default NA) |
The modified 'se' object.
data("Chen2017", package="sechm")
Chen2017 <- setRowAttr(Chen2017, c("Arc"=1,"Junb"=1,"Npas4"=2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.