question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

10x H5 Format Error

See original GitHub issue

On most recent commit “c051c44” on v2, the output .h5 files can’t be read by scanpy. Seems to think there’s a key error on ‘genome’?

`KeyError Traceback (most recent call last) ~/utils/miniconda3/envs/scanpy/lib/python3.7/site-packages/scanpy/readwrite.py in _read_v3_10x_h5(filename, start) 253 feature_types=dsets[‘feature_type’].astype(str), –> 254 genome=dsets[‘genome’].astype(str), 255 ),

KeyError: ‘genome’

During handling of the above exception, another exception occurred:

Exception Traceback (most recent call last) <timed exec> in <module>

~/utils/miniconda3/envs/scanpy/lib/python3.7/site-packages/scanpy/readwrite.py in read_10x_h5(filename, genome, gex_only) 159 v3 = ‘/matrix’ in f 160 if v3: –> 161 adata = _read_v3_10x_h5(filename, start=start) 162 if genome: 163 if genome not in adata.var[‘genome’].values:

~/utils/miniconda3/envs/scanpy/lib/python3.7/site-packages/scanpy/readwrite.py in _read_v3_10x_h5(filename, start) 258 return adata 259 except KeyError: –> 260 raise Exception(‘File is missing one or more required datasets.’) 261 262

Exception: File is missing one or more required datasets.`

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:21 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
letaylorcommented, Oct 27, 2020

Yes - this is it. I can confirm loading the CellBender output in scanpy works just fine when I run CellBender using the h5 input format.

2reactions
letaylorcommented, Oct 27, 2020

Ah - I think the error occurs when one is running CellBender using the CellRanger matrix format (a dir with barcodes.tsv.gz, features.tsv.gz, and matrix.mtx.gz) rather than h5 format as input. I am testing out using the CellRanger h5 file now and will report back.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Cell Ranger -Software - Support
If you are unable to diagnose a failure yourself, you can always contact the 10x Genomics software support team for help. Resuming a...
Read more >
Read 10X hdf5 file — Read10X_h5 • Seurat - Satija Lab
Read count matrix from 10X CellRanger hdf5 file. This can be used to read both scATAC-seq and scRNA-seq matrices. Read10X_h5(filename, use.names = TRUE, ......
Read more >
How to convert 10x matrix.mtx.gz files to hdf5 format? - Biostars
I need the . h5 version of these count matrices, but I do not have access to the original Cellranger Count output which...
Read more >
write10xCounts: Write count data in the 10x format - Rdrr.io
This is either a directory containing a sparse matrix with row/column annotation ( "sparse" ) or a HDF5 file containing the same information...
Read more >
How to convert 10x matrix.mtx.gz files to hdf5 format?
h5 files. Is there an R or Python function that can reliably convert these files into the proper hdf5 format? I haven't found...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found