• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pirl-unc / tcrsift / 25521716674

07 May 2026 08:58PM UTC coverage: 70.561% (-0.04%) from 70.596%
25521716674

push

github

web-flow
Skip unset sample metadata fields in load_sample (closes #5) (#6)

When a sample sheet doesn't supply antigen / MHC fields, load_sample was
unconditionally assigning sample.<field> to adata.obs, producing
all-None object-dtype columns. Concat across samples kept them, and
anndata.write_h5ad then choked categorizing them ("Can't implicitly
convert non-string objects to strings"), the same shape of failure as
the has_TRA bug fixed in #4.

Skip the assignment when the value is None — downstream readers
already guard with `if col in adata.obs.columns`.

Adds a regression test that loads a sample with no antigen metadata
and round-trips through write_h5ad.

Bumps version to 0.2.8.

4065 of 5761 relevant lines covered (70.56%)

2.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.3
/loader.py


Source Not Available

The file "loader.py" isn't available on github. Either it's been removed, or the repo root directory needs to be updated.

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc