Hi there,
I am new in the field of bioinformatics and R and have been trying to do the multi-modal vignette from the Satija lab (Seurat) but without success. See link to the vignette here: https://satijalab.org/seurat/v3.1/multimodal_vignette.html
I have performed scRNAseq in combination with index sorting. Now I am trying to link the index sort data with the scRNAseq data. However, I have not been successful in doing so with the vignette. I cannot seem to get the CreateAssayObject function to work, as I get "Error: Cannot add a different number of cells than already present".
Furthermore, I do not fully understand all the steps.
I understand that they first of course load the data. However, what do they do in the second line ("rownames(x=pbmc10k.data[["Antibody Capture"]]...")? Is "Antibody Capture" already a column in their metadata or are they adding it here?
pbmc10k.data <- Read10X(data.dir = "../data/pbmc10k/filtered_feature_bc_matrix/") rownames(x = pbmc10k.data[["Antibody Capture"]]) <- gsub(pattern = "_[control_]*TotalSeqB", replacement = "", x = rownames(x = pbmc10k.data[["Antibody Capture"]]))
I also understand that after that they create their object and subsequently normalize their data:
pbmc10k <- CreateSeuratObject(counts = pbmc10k.data[["Gene Expression"]], min.cells = 3, min.features = 200) pbmc10k <- NormalizeData(pbmc10k)
However, what are they doing as they add the ADT data?
pbmc10k[["ADT"]] <- CreateAssayObject(pbmc10k.data[["Antibody Capture"]][, colnames(x = pbmc10k)]) pbmc10k <- NormalizeData(pbmc10k, assay = "ADT", normalization.method = "CLR")
Similar question here, are they here adding a column called "ADT" to their metadata? Also, which normalization method to use in the case of index sort data as opposed to ADT data?
Looking forward to any suggestions!
Many thanks in advance, Florencia
Dear Igor,
Many thanks for your answer, after some additional reading and thanks to your answer it became much clearer to me and I managed to apply the tutorial to my data.
Best wishes, Florencia