Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cthoyt/12b51b38f35b1051f4cee4cd38f93c61 to your computer and use it in GitHub Desktop.
Save cthoyt/12b51b38f35b1051f4cee4cd38f93c61 to your computer and use it in GitHub Desktop.
Find Bioregistry records with publications but no contact information to prioritize curation of new contact information
from tabulate import tabulate
import bioregistry
if __name__ == "__main__":
rows = []
for resource in bioregistry.resources():
if resource.is_deprecated():
continue
if resource.get_contact():
continue
publications = resource.get_publications()
if not publications:
continue
url = publications[0].get_url()
rows.append((resource.prefix, resource.get_name(), url))
print(tabulate(rows, headers=["prefix", "name", "url"]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment