DataBiosphere / data-portal

Apache License 2.0
9 stars 21 forks source link

[Atlas Pages] Script to automatically check CELLxGENE for collections linked to HCA Projects #2364

Closed NoopDog closed 6 months ago

NoopDog commented 8 months ago

Need

Currently, Jason on the Lattice team emails us occasionally with the collection IDs of collections linked to HCA Data Repository projects. Instead we would like to poll the CELLxGENE Discover API occasionally to find all collections that are associated with an HCA Project.

Approach

Create a script that calls the CELLxGENE discover API to list all collections. Search over the collections looking for ones that have a link to the HCA Data Explorer. Add and entry in a json file that associates a collection id with a project id. When the script is re-run it add or removes any associations to match the CELLxGENE info.

We can discuss how to use this file .... TBD

NoopDog commented 6 months ago

Complete