count_clonotype_by_cluster: Add a df of clonotype observations by cell cluster to @misc...

View source: R/singlecell.R

count_clonotype_by_clusterR Documentation

Add a df of clonotype observations by cell cluster to @misc of a Seurat datastructure.

Description

This seeks to count up and provide a couple of metric of how many B/T cells are in each cluster of a VDJ single cell dataset.

Usage

count_clonotype_by_cluster(
  scd,
  column = "res0p2_clusters",
  clono_column = "raw_clonotype_id",
  add_sum = TRUE
)

Arguments

scd

Seurat single cell datastructure.

column

Cluster column in the metadata.

clono_column

Column containing VDJ annotations.

add_sum

Add sums of the clusters to the metadata?

Value

The scd with some new metadata.


elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.