This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Loading Matrices of 10X Genomics failed

I am loading Matrices of 10X genomics Single Cell Multiome ATAC+ Gene Exp's output into Python. I just go through the instruction of 10X genomics. (https://support.10xgenomics.com/single-cell-multiome-atac-gex/software/pipelines/latest/output/matrices?src=social&lss=facebook&cnm=soc-fb-ra_g-program-fb-ra_g-program&cid=7011P000000y072) But I failed when I try to read features and barcodes. The error is

feature_ids = [row[0] for row in csv.reader(gzip.open(features_path), delimiter="\t")] Error: iterator should return strings, not bytes (did you open the file in text mode?)

rna-seq software error

1 answer

Check your file type, gzip.open did not find a csv file.

Thank you for your remind. I solved it by csv.reader(codecs.iterdecode(gzip.open(features_path), 'utf-8')

Log in to answer this question.