Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

elifesciences/citerank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculates PageRank over citation data.

Pre-requsites

  • Python 2 or 3 (Python 3 preferred)
  • igraph

Setup

pip install -r requirements.txt

Generate PageRank from citation data

First generate or download the citation links, e.g. using datacapsule-occ.

Then run:

./pagerank.sh \
  --links-path=data/doi-citation-links.csv \
  --pagerank-output-path=data/doi-citations-pagerank.csv \
  --source-column=citing_doi \
  --target-column=cited_doi

The output will be data/doi-citations-pagerank.csv with the following columns:

  • citing_doi (or name specified by source_column)
  • pagerank - the file will be sorted by that value (descending)
  • incoming - number of incoming connections
  • outgoing - number of outgoing connections

License

GPL due to igraph. (This may change in the future when switiching to another library)

Code that doesn't rely on GPL licensed code, may be licensed under MIT.

About

Calculates PageRank over citation data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published