CreatePairedObject: Create paired object

View source: R/pair_cells.R

CreatePairedObjectR Documentation

Create paired object

Description

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

Usage

CreatePairedObject(
  df.pair,
  obj.coembed = NULL,
  obj.rna = NULL,
  obj.atac = NULL,
  rna.assay = NULL,
  atac.assay = NULL,
  sep = c("-", "-")
)

Arguments

df.pair

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

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.

object

Seurat object generated by the function CoembedData

use.assay1

A string indicating the first assay

use.assay2

A string indicating the first assay

Value

A Seurat object

Examples

## Not run: 
obj <- CreatePairedObject(
   df.pair = df.pair,
   object = obj.coembed,
   use.assay1 = "RNA",
   use.assay2 = "ATAC",
)

## End(Not run)

CostaLab/scMEGA documentation built on Sept. 25, 2024, 6:11 a.m.