Skip to content

B8: Converters' fidelity #142

Backlog
Backlog

Description

@Claptar

Part of #149.

wave 2 · 0.17.12 · size M

Goal. Converted stores read as Cell Ranger, scanpy and anndata expect.

Owns: conversion/{dense,features,tenx,mtx,loom}.py, formats/textio.py

Approach:

  • float16 widens to float32 for a sparse X, with a warning.
  • --make-unique keeps the unsuffixed names for export; Flex's target_sets round-trips under uns/cellranger.
  • Quoted fields are unquoted as pandas does, which lets MTX export quote names rather than refuse them.
  • Loom graphs are checked when planned; --dense takes an empty axis; the 10x-mtx docs say what order a CSC X is written in.

Findings

Ref Sev Finding Where
F211 M A float16 HDF5 dataset becomes a float16 CSR X that anndata cannot read conversion/dense.py:71
F212 M --make-unique suffixes are exported as Cell Ranger feature names conversion/features.py:424
F213 M Loom graph with a, b, w of different lengths is refused during the write, not the plan conversion/loom.py:685
F214 M Quoted barcodes and features in an MTX folder keep their quotes formats/textio.py:128
F215 L --dense refuses a dataset with no columns that converts sparse conversion/dense.py:128
F216 L 10x-mtx export docs claim barcode order; a CSC X is written in gene order conversion/mtx.py:650
F217 L Flex/targeted features/target_sets is lost in a 10x .h5 round trip conversion/tenx.py:256

Done when one PR on fix/b8 closes this, with a regression test against an oracle for every finding, and docs and changelog in the same PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions