Add metadata to a Seurat object, handling cell mismatches
Source:R/countmatrix.R
BascetAddMetaData.RdUnlike Seurat's AddMetaData, this function handles the case where the metadata data.frame has fewer or more rows than cells in the object. Missing cells get NA values.