sync_cnr | R Documentation |
sync cnr cells to those in the phenotype annotation
sync_cnr(
cnr,
cell.order = NULL,
full.sync = TRUE,
chromosome.order = c(1:22, "X", "Y", "MT")
)
cnr |
a cnr bundle |
cell.order |
a specific order of cells. 'cell.order' must contain all cells. For subsetting cells use keepCells or excludeCells. Default: NULL which will syncronize to the in the Y matrix. |
full.sync |
also order chromInfo and gene.index. default TRUE. Uses bin.chrom, bin.start for ordering bins, and chrom, start for ordering genes. To use other column names , use full.sync = FALSE, and order bins and genes separetly. |
chromosome.order |
chromosome order to use as levels for arranging chromInfo and gene.index |
Function returns a syncronized cnr.
data(cnr)
names(cnr$X)
cnrS <- sync_cnr(cnr)
names(cnrS$X)
ordered.cells <- cnr$Y[order(cnr$Y$random1), "cellID"]
cnrS <- sync_cnr(cnr, cell.order = ordered.cells)
names(cnrS$X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.