Hello,
I was given two sets of fastq files, one of them is gene expression data and the other one contains the information of the samples that were hashtagged using total seq B antibodies. I was asked to use hashsolo to analyze the data and I am a bit confused about how to do that.
If I use the hashsolo on the fastq files with the hashtagging information then how do I connect that to the gene expression data?
I read in a paper that they used cellranger count and used the hashtags as antibody capture and then input the output matrix which contains both the gene expression and hashtag matrixes in python and used hashsolo. However, when I tried to do that I could not get hashsolo to work because the hashtag information was in the .var column instead of the .obs. For this approach, I used cellranger count with feature barcode data and put the hashtags as antibody capture and I ended up with one matrix.
Thank you
It's hard to say why it's not working for you without seeing the data, your code, and errors if any. Hashsolo is kind of straightforward: the function accepts an AnnData object of hash counts. You'll get a combined feature-barcode matrix from CellRanger. So, what you need to do is to get the CellRanger output, create an AnnData object with just the hash counts and feed that into hashsolo function.
Please come back with more information.
I did the cellranger count step with the feture barcoding and then I uploaded the data as shown below:
I see the hashtag antibodies on my object but they are on the .var column. I was planning to use the command
sce.pp.hashsolo(data, ['Hash1', 'Hash2', 'Hash3'])
from scanpy (https://scanpy.readthedocs.io/en/stable/generated/scanpy.external.pp.hashsolo.html). However, when I triedsc.external.pp.hashsolo(protein,['TotalSeq-B0301_anti-mouse_Hashtag_1_Antibody', 'TotalSeq-B0302_anti-mouse_Hashtag_2_Antibody', 'TotalSeq-B0303_anti-mouse_Hashtag_3_Antibody','TotalSeq-B0304_anti-mouse_Hashtag_4_Antibody','TotalSeq-B0305_anti-mouse_Hashtag_5_Antibody'])
I got the error below:Am I importing my matrix wrongly?
Thank you
I ended up using hashsolo.hashsolo instead of sc.external.pp.hashsolo and I got it to work. I think part of the issue that I am having is that after cellranger count the hashtag information is on the .var column instead of the .obs.