add_to_seurat: add_to_seurat()

View source: R/seurat_interaction.R

add_to_seuratR Documentation

add_to_seurat()

Description

Add meta.data about CNAs to a Seurat object from an infercnv_obj

Usage

add_to_seurat(
  seurat_obj = NULL,
  assay_name = "RNA",
  infercnv_output_path,
  top_n = 10,
  bp_tolerance = 2e+06,
  column_prefix = NULL
)

Arguments

seurat_obj

Seurat object to add meta.data to (default: NULL)

assay_name

Name of the assay in the Seurat object if provided. (default: "RNA")

infercnv_output_path

Path to the output folder of the infercnv run to use

top_n

How many of the largest CNA (in number of genes) to get.

bp_tolerance

How many bp of tolerance to have around feature start/end positions for top_n largest CNVs.

column_prefix

String to add as a prefix to the Seurat metadata columns. Only applied to the seurat_obj, if supplied. Default is NULL

Value

seurat_obj


broadinstitute/infercnv documentation built on Dec. 3, 2023, 6:58 p.m.