Skip to main content

Create a co-citation graph from a list of papers

Project description

Co-citation graph generator

REUSE status pipeline status PyPI version

Generate a co-citation graph from an article list in two steps:

  1. Get the references of each article and their corresponding journals
  2. Generate the co-citation pairs and add them the graph. The weights are the number of times the journals are co-cited.

Example

from co_citation import CoCitation

cites = CoCitation(
    [
        "arxiv:1602.05112",
        "pubmed:8113053",
        "sciencedirect:S0167923610001703",
        "scopus:10.1016/j.cmet.2020.11.014",
    ],
    data_type="journal", # or "article", "institution"
    wait=None, # None or the time to wait between requests (in seconds)
    retries=None, # None or the number of retries for HTTPS requests
    first_last_author=False, # Set to True to only get the institution of the first and last authors
)
cites.write_graph_edges("graph")
cites.plot_graph(display=False, k=10)

Documentation

See the documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

co-citation-0.6.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

co_citation-0.6-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file co-citation-0.6.tar.gz.

File metadata

  • Download URL: co-citation-0.6.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for co-citation-0.6.tar.gz
Algorithm Hash digest
SHA256 e9fff0316440ebf08a80021ba457785d0314a833c2ee565ab581469bba665ab4
MD5 edf04c9f72ab808b947f22fbeb0625dc
BLAKE2b-256 08e75a43c927027b093abe587d9f1f2eb1d00b34ff5a5dbc8067fe94b9173861

See more details on using hashes here.

File details

Details for the file co_citation-0.6-py3-none-any.whl.

File metadata

  • Download URL: co_citation-0.6-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for co_citation-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a2fe99863b0b75f68f7581e2e0cbfa79dea9d111a604a13d5f0108a70a755ad3
MD5 3bebfb595ae9450677be4340730cab57
BLAKE2b-256 77c54d5443c12c6c198d83bfbcdc82d1ec58b8fc58f73ff66c5fbe1a6c6148d0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page