Created
April 18, 2024 10:49
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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