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?)
Thank you for your remind. I solved it by csv.reader(codecs.iterdecode(gzip.open(features_path), 'utf-8')