Kyle Demes

Has research security policy changed who Canada works with? Data and code

Everything behind the field note of the same name. All counts come from OpenAlex, pulled 16 to 20 November 2026; later pulls will differ a little as OpenAlex updates.

Check the headline numbers in a browser

Each link returns counts grouped by country: the CA row is the total, the other row is the part with a co-author in that country. Change 2025 to 2020 to see the starting point.

What’s here

MANIFEST.md maps every chart and number in the post to the script that makes it, the order to run them, and the output file and field.

Not included, on purpose

Individual-level files aren’t published: the author cohorts behind the researcher panel, the 1.1 million-article local download (re-create it with scripts/pull_ca_works.py), raw affiliation strings, acknowledgement text, and grant-level NSERC rows (applicant names and titles are in NSERC’s own open data; download links in MANIFEST.md). The scripts re-create these files locally when you run them. The grant-matching test in the post isn’t included, because it matches researchers to grants by name. The analysis reports institutions and countries, not people.

Corrections disclosed

On 19 November 2026 I submitted 763 affiliation corrections to OpenAlex, mostly separating Shahid Beheshti University from Shahid Beheshti University of Medical Sciences. They change the data reported here, mostly for Iran.