I didn't previously audit the ad-hoc scripts directory too carefully… having now done so, alongside _create_testsubset.py I think this is the only one needing adjustments.
Expand sample_map_by_external_id to hold all the external_ids for all the samples. For samples with an external_id containing '-PBMC', use next(...) to pick the first such external_id — generally there'll surely only be one anyway.
I didn't previously audit the ad-hoc scripts directory too carefully… having now done so, alongside _create_testsubset.py I think this is the only one needing adjustments.
Expand
sample_map_by_external_id
to hold all the external_ids for all the samples. For samples with an external_id containing '-PBMC', usenext(...)
to pick the first such external_id — generally there'll surely only be one anyway.