## Generate some random data
Data <- matrix(abs(rnorm(3000, sd=2)),ncol=10,nrow=30)
## Initializing SincellObject named list
mySincellObject <- sc_InitializingSincellObject(Data)
## Adding gene names to expression matrix
rownames(mySincellObject[["expressionmatrix"]]) <- 1:30
## Getting the color vector coding for the expression values of a marker gene
mymarkerColorCodeA<-sc_marker2color(mySincellObject, marker="3",
color.minimum="green", color.maximum="red", relative.to.marker=TRUE)
mymarkerColorCodeB<-sc_marker2color(mySincellObject, marker="5",
color.minimum="yellow", color.maximum="blue", relative.to.marker=FALSE)Run the code above in your browser using DataLab