Official code repository for the paper "Collaboration and Topic Switches in Science" by Sara Venturini1, Satyaki Sikdar1, Francesco Rinaldi, Francesco Tudisco, and Santo Fortunato.
- Create the
topic-switch
conda environment fromenvironment.yml
by running
conda env create -f environment.yml
- Create data directories by executing the following command:
mkdir -p data/Physics; mkdir -p data/CS; mkdir -p data/BioMed
-
Download the OpenAlex slices from Zenodo inside
data/{FIELD}
directories. Eg:Physics.zip
should be indata/Physics
. -
Extract the zipped slices, so you should have the following files inside
data/{FIELD}
:works.parquet
,works_authorships.parquet
,works_concepts.parquet
, andworks_referenced_works.parquet
.
- Run
notebooks/ExperimentI.pynb
ornotebooks/ExperimentII.pynb
- More info coming soon..
- Run
notebooks/analysis.ipynb
- More info coming soon..