Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dcp-954 update bionetworks #530

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

amnonkhen
Copy link
Contributor

@amnonkhen amnonkhen commented Jun 30, 2023

A script to update a project's bio network association.
dcp-954
ebi-ait/dcp-ingest-central#954

self.submissions = {}
self.project_submissions = {}

def get_exported_projects(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be faster to get all projects from azul, then compare it with the list of projects in ingest?

Currently we have 1025 projects registered in ingest, and there are 386 in azul, so instead of having 53 calls to ingest (I am assuming page size of 20? in api.get_all) + 1025 requests to azul, we would have 40 to azul + 53 to ingest? it would be a bit more memory-intensive since we would need to hold the list of azul projects and parse the list, but I think it would be more time efficient

Since it's a one off, this works perfectly fine, I was just wondering :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants