Loading Matrices of 10X Genomics failed
1
0
Entering edit mode
3.9 years ago
yzhao140 • 0

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.1k views
ADD COMMENT
0
Entering edit mode
3.9 years ago

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

ADD COMMENT
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 2984 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6