populationgenomics / metamist

Sample level metadata system
MIT License
1 stars 1 forks source link

Update fix_pbmc_sample_participant.py script for multiple external ids #831

Closed jmarshall closed 1 day ago

jmarshall commented 3 weeks ago

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.

jmarshall commented 1 day ago

Incorporated into PR #866.