This function will create a Seurat object including single-cell multimodal data based on the paired cells.

CreatePairedObject(
  df.pair,
  object,
  use.assay1 = NULL,
  use.assay2 = NULL,
  sep = c("-", "-")
)

Arguments

df.pair

A data frame containing the cell pairing results generated by the function PairCells.

object

Seurat object generated by the function CoembedData

use.assay1

A string indicating the first assay

use.assay2

A string indicating the first assay

sep

Separators to use for strings encoding genomic coordinates. First element is used to separate the chromosome from the coordinates, second element is used to separate the start from end coordinate.

Value

A Seurat object

Examples

if (FALSE) {
obj <- CreatePairedObject(
   df.pair = df.pair,
   object = obj.coembed,
   use.assay1 = "RNA",
   use.assay2 = "ATAC",
)
}