scrublet icon indicating copy to clipboard operation
scrublet copied to clipboard

Number genes value is different

Open IlianCx opened this issue 2 years ago • 0 comments

Hello I am seeing the number of genes list in my sample with scrublet functions below is different(23932) from that I see in Seurat files (17229) which is not allowing it to add as Seurat metadata. I am not sure how this difference comes as the only difference I see is changing file formats from .gz in Seurat to .tsv or .mtx in scrublet analysis.

counts_matrix = scipy.io.mmread(input_dir + '/matrix.mtx').T.tocsc() genes = np.array(scr.load_genes(input_dir + 'genes.tsv', delimiter='\t', column=1)) print('Counts matrix shape: {} rows, {} columns'.format(counts_matrix.shape[0], counts_matrix.shape[1])) print('Number of genes in gene list: {}'.format(len(genes)))

Please let me know any suggestions. Thanks in advance! Illian

IlianCx avatar Sep 14 '22 16:09 IlianCx