API Documentation¶
The following is a list of the publicly available objects and functions in LISC.
Many of the elements listed here are objects, as indicated by being in CamelCase.
If you click on the object names, it will take you to a new page describing their attributes and methods.
Table of Contents¶
Collection Objects¶
Custom objects for collecting & analyzing literature data.
Counts Object¶
|
A class for collecting and analyzing co-occurrence data for specified terms list(s). |
|
A class for collecting counts data for specified terms. |
Words Object¶
|
A class for collecting and analyzing words data for specified terms list(s). |
Base Object¶
|
A class for the base object for LISC collections and analyses. |
Data Objects¶
Custom objects and related functions for storing and managing extracted data.
Term Object¶
|
Search term definition with inclusion & exclusion words. |
Metadata Object¶
|
An object to hold the meta data for data collection. |
Articles Objects¶
|
An object to hold collected 'words' data for a specified term. |
|
An object to hold term data, aggregated across articles. |
Articles Processing¶
|
Process collected data in an Articles object. |
Data Collection Functions¶
Functions for collecting data from supported APIs.
EUtils¶
|
Collect database information & metadata from EUtils. |
|
Collect text data and metadata from EUtils using specified search term(s). |
|
Collect count and term co-occurrence data from EUtils. |
|
Collect data across time epochs. |
OpenCitations¶
|
Collect citation data from OpenCitations. |
URLs & Requests Objects¶
Object to manage URLs & requests.
URLs Objects¶
URL management for supported APIs.
|
URLs for an API interface. |
|
URLs for the NCBI EUtils API. |
URLs for the OpenCitations API. |
Requester Object¶
Request management for interacting with APIs.
|
Object to handle URL requests. |
Analysis Functions¶
Functions to analyze collected data.
Co-Occurrence Data¶
|
Compute a normalization of the co-occurrence data. |
|
Compute the association index from the co-occurrence data. |
|
Calculate the similarity across the co-occurrence data. |
Words Data¶
|
Get all values for a field of interest. |
|
Get all counts for a field of interest. |
|
Get count of how many articles contain values for a requested attribute. |
Plotting Functions¶
Plotting functions for collected data.
Counts¶
|
Plot a matrix as a heatmap. |
|
Plot a vector as an annotated heatmap. |
|
Plot a clustermap of the given data. |
|
Plot a dendrogram of the given data based on hierarchical clustering. |
Words¶
|
Plot a histogram of the number publications across years. |
|
Plot a wordcloud. |
File Management¶
File management and input / output.
I/O¶
|
Save out a JSON file. |
|
Load from a JSON file. |
|
Save out data to a JSONlines file. |
|
Parse data from a json file. |
|
Load contents from a text file. |
|
Load an API key from a file. |
|
Save a custom object as a pickle file. |
|
Load a custom object, from a pickle file. |
|
Save a set of results collected across time. |
|
Load a set of results collected across time. |
|
Save out a meta object, as a JSON file. |
|
Load a MetaData object from file. |
Database Management¶
|
Database object for a SCANR project. |
|
Create the file structure for a SCANR database. |
|
Check the file structure of a folder. |
|
Get information from a directory structure definition. |
|
Check and extract a file path. |
File Utilities¶
|
Check the extension for a file name, and add if missing. |
|
Get a list of files from a directory. |