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.
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