Expected `nrow(unmatched_repertoire_ids)` to equal 0.
Differences:
  `actual`: 1.0
`expected`: 0.0

context: downsample n=1 receptor mode
annotation shape: 8x16
repertoire shape: 2x4
missing annotation columns: <none>
missing repertoire columns: <none>
annotation NA counts: imd_receptor_id=0, imd_repertoire_id=8, imd_count=8, imd_proportion=8, n_repertoires=0
repertoire NA counts: imd_repertoire_id=0, n_barcodes=0, n_receptors=2
unmatched repertoire ids: NA

annotations dump:
# A tibble: 8 x 16
  cell_id sample_id v_call j_call junction_aa locus umi_count filename          
* <chr>   <chr>     <chr>  <chr>  <chr>       <chr>     <dbl> <chr>             
1 s1c1    S1        IGHV1  IGHJ1  A           IGH          12 "D:\\temp\\2026_0~
2 s1c2    S1        IGHV1  IGHJ1  A           IGH          11 "D:\\temp\\2026_0~
3 s1c3    S1        IGHV2  IGHJ2  B           IGH          10 "D:\\temp\\2026_0~
4 s1c4    S1        IGHV3  IGHJ3  C           IGH           9 "D:\\temp\\2026_0~
5 s2c1    S2        IGHV4  IGHJ4  D           IGH           8 "D:\\temp\\2026_0~
6 s2c2    S2        IGHV5  IGHJ5  E           IGH           7 "D:\\temp\\2026_0~
7 s2c3    S2        IGHV5  IGHJ5  E           IGH           6 "D:\\temp\\2026_0~
8 s2c4    S2        IGHV6  IGHJ6  F           IGH           5 "D:\\temp\\2026_0~
# i 8 more variables: imd_barcode <chr>, imd_chain_id <int>,
#   imd_receptor_id <int>, imd_n_chains <dbl>, imd_count <dbl>,
#   imd_repertoire_id <int>, imd_proportion <dbl>, n_repertoires <int>

repertoires dump:
# A tibble: 2 x 4
  imd_repertoire_id sample_id n_barcodes n_receptors
              <int> <chr>          <dbl>       <int>
1                 1 S1                 4          NA
2                 2 S2                 4          NA

Error in `select(sampled_receptors, all_of(receptor_join_cols))`: i In argument: `all_of(receptor_join_cols)`.
Caused by error in `all_of()`:
! Can't subset elements that don't exist.
x Elements `imd_repertoire_id` and `imd_receptor_id` don't exist.