Learn R Programming

rliger (version 1.0.0)

reorganizeLiger: Construct a liger object organized by another feature

Description

Using the same data, rearrange functional datasets using another discrete feature in cell.data. This removes most computed data slots, though cell.data and current clustering can be retained.

Usage

reorganizeLiger(
  object,
  by.feature,
  keep.meta = TRUE,
  new.label = "orig.dataset",
  ...
)

Arguments

object

liger object.

by.feature

Column in cell.data to use in reorganizing raw data.

keep.meta

Whether to carry over all existing data in cell.data slot (default TRUE).

new.label

If cell.data is to be retained, new column name for original organizing feature (previously labeled as dataset) (default "orig.dataset")

...

Additional parameters passed on to createLiger.

Value

liger object with rearranged raw.data slot.

Examples

Run this code
# NOT RUN {
# ligerex (liger object based on in-memory objects) organized by species
# with column designating sex in cell.data
# rearrange by sex
ligerex_new <- reorganizeLiger(ligerex, by.feature = "sex", new.label = "species")
# }

Run the code above in your browser using DataLab