Error in `downsample_immundata(idata, n = 5, seed = 222)`: No barcode units were selected. Increase `n`.

Expected `all(ann_na_counts == 0)` to be TRUE.
Differences:
`actual`:   FALSE
`expected`: TRUE 

context: downsample count/proportion invariants
annotation shape: 6x16
repertoire shape: 2x4
missing annotation columns: <none>
missing repertoire columns: <none>
annotation NA counts: imd_receptor_id=0, imd_repertoire_id=6, imd_count=6, imd_proportion=6, n_repertoires=0
repertoire NA counts: imd_repertoire_id=0, n_barcodes=0, n_receptors=2

downsample_immundata produces consistent imd_count and imd_proportion invariants

Expected `all(reps_na_counts == 0)` to be TRUE.
Differences:
`actual`:   FALSE
`expected`: TRUE 

context: downsample count/proportion invariants
annotation shape: 6x16
repertoire shape: 2x4
missing annotation columns: <none>
missing repertoire columns: <none>
annotation NA counts: imd_receptor_id=0, imd_repertoire_id=6, imd_count=6, imd_proportion=6, n_repertoires=0
repertoire NA counts: imd_repertoire_id=0, n_barcodes=0, n_receptors=2

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

context: downsample count/proportion invariants
annotation shape: 6x16
repertoire shape: 2x4
missing annotation columns: <none>
missing repertoire columns: <none>
annotation NA counts: imd_receptor_id=0, imd_repertoire_id=6, imd_count=6, imd_proportion=6, n_repertoires=0
repertoire NA counts: imd_repertoire_id=0, n_barcodes=0, n_receptors=2
unmatched repertoire ids: NA

Error in `downsample_immundata(idata, n = 2, seed = 33)`: No barcode units were selected. Increase `n`.

Expected `all(ann_na_counts == 0)` to be TRUE.
Differences:
`actual`:   FALSE
`expected`: TRUE 

context: single-chain duplicated receptors
annotation shape: 5x16
repertoire shape: 2x4
missing annotation columns: <none>
missing repertoire columns: <none>
annotation NA counts: imd_receptor_id=0, imd_repertoire_id=5, imd_count=5, imd_proportion=5, n_repertoires=0
repertoire NA counts: imd_repertoire_id=0, n_barcodes=0, n_receptors=2