Skip to main content

creates citation tree plot using DOI

Project description

Citree

research citations tree visualization

Citree is a class that creates a citations tree.
the input is the DOI of the paper you want to start with (for example, 10.1002/ejp.1639).
the data is retrieved using semanticscholar package
(api that works with https://www.semanticscholar.org/).
the network is built by using Networkx package.
the plotting is done by using Bokeh package.

attributes: 
--------------
    first_doi - the doi provided by the user
    paper - a semanticscholar class (api that works with https://www.semanticscholar.org/)
    plot_name - plot title based on the name and author of the paper provided
    G - networkx object of the papers network
    A - networkx object of the authors plot
    generation - stores the number of generations
        (iterations of create_next_generation method)

methods:
--------------
first - creates the first node
create_next_generation - creates nodes based on papaers that cited
    the last generation nodes.
    saves a backup gpickle file.
    prints the generaton nuber and how many papers were found.
color_by_self_citation - needs an input of authorId.
    colors in red nodes of papers which the input author is a co-author.
    the other nodes and edges are green.
    the authors names are stored at paper['authors']
plot_html - creats an html file with tow plots:
    1. papers cictations tree
    2. authors who wrote toghather
export_csv(filename='filename') - creates a dataframe and exports it as 'filename.csv'

example of use:
from citree import citree
temp = citree('10.1111/j.1526-4610.2006.00288.x')

#other optional methods
temp.first()
temp.create_next_generation()
temp.create_next_generation()
temp.color_by_self_citation()
temp.plot_html('temp')
temp.export_csv(filename='mycsv)

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

citree-0.0.7.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

citree-0.0.7-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file citree-0.0.7.tar.gz.

File metadata

  • Download URL: citree-0.0.7.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.0 requests/2.24.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for citree-0.0.7.tar.gz
Algorithm Hash digest
SHA256 ab22e40a028ca9b49e555115ef17062c59bfb31dcda32c264b5390ebeca7f884
MD5 fe36d4e68809c62dc67b5977018b13bd
BLAKE2b-256 ab4480ef5162352a53a74bb4dc2d7db5495304176f76402602ede512b5bc4cd9

See more details on using hashes here.

File details

Details for the file citree-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: citree-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.0 requests/2.24.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for citree-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fd39a6240d9aee475cc48ce51a9c600475c87867bd825af9cef1fb7a1343dbb4
MD5 ebee4c02afb580d5130fdce4b718cd8a
BLAKE2b-256 dc01502608777849c4aee361b4285cab873d27a50f2983acf3cca21d32e45d5d

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