assignMetaData: assignMetaData

View source: R/functions.R

assignMetaDataR Documentation

assignMetaData

Description

Adds metadata to a seurat object from a samplesheet. Does this if the samples are singular or contain multiplex data. Returns a seurat object with metadata.

Usage

assignMetaData(
  seurat_obj,
  samplesheet,
  multiplex = c("none", "hash", "demuxlet"),
  barcode_df = NULL
)

Arguments

seurat_obj

Seurat object for a sample to be annotated with metadata.

samplesheet

Samplesheet containing per sample data to be added.

multiplex

Character vector indicating what kind of multiplexing, if any, should be used. "none" assumes no multiplexing is occuring. "hash" looks for hashtags in the samplesheet and adds them according to exisiting metadata in the object for cell hashing. "demuxlet" indicates that samples have been demuxed in some other fashion (e.g. by genetics) and you are providing a dataframe indicating which cells are assigned to which identity.

barcode_df

A dataframe containing barcode-sample assignments, such as the [prefix].best file generated by demuxlet.


KevinTThomas/sle_activity_scrnaseq documentation built on Aug. 8, 2022, 12:25 p.m.