Skip to main content

CHORUS Reports

CHORUS brings together funders, societies, publishers, institutions, and the public from across the open research ecosystem to share knowledge, develop solutions, advance innovation, and support collective efforts. CHORUS queries several repositories to collect data from the Global Research Infrastructure and makes those data available in reports. Metadata Game Changers is working with CHORUS to understand these reports and help U.S. Funders and other users to understand them as well.

The CHORUSReports Package was developed by Metadata Game Changers to facilitate analysis of the CHORUS reports with focus on the All Report, the Author Affiliation Report, and the Dataset Report.

CHORUSReports

The CHORUSReport object holds a CHORUS Report of any type and support operations on that on

Properties

Property Description
dataPath Path to the data associated with the report.
dataFile The name of the data file associated with the report (derived from dataPath.
organization The acronym of the organization that the report data comes from (typically NSF, USGS, or USAID). The fileNames start with these acronymns.
timestamp The timestamp (YYYYMMDD) of the data in the report, i.e., when it was retrieved from CHORUS)
dataType The type of the data in the report (all, authors, datasets)
data_d Data associated with the report, i.e. actual data or the summary of the data. Elements of the data_d are described below.

Functions

Function Description Arguments Returns
save Save the data from the report to its dataFile. This can be used to save changes made during the analysis of the data to the original datafile. None Message with number of lines written.
data Returns the data for the report as a dataframe. Dataframe commands can be used with this, e.g. cr.data('all').head() dataType as string data in dataframe.
summary Returns the summary for the report as a dataframe. Dataframe commands can be used with this, e.g. cr.sumary('all').head() dataType as string summary in dataframe.
info Returns data dataframe.info() for the report. None info() for dataframe
counts Returns count information for a field in the report data, e.g. cr.report('all').counts('DOI') gives the summary information for the DOI column of the All Report Field name Dictionary with counts ({'report': 'all', 'field': 'DOI', 'total count': 7143, 'unique': 7143})
common Counts values of a field in a report. field name, delimiter (default=None) Adds new data (dataframe of value, counts) to the report with the name of the item counted as the key for the data.
makeStandardElementNames Convert names of columns in the report to standard names given in the dataTypes_d. None Dataframe in report has standard column names.
makePublicationYear Creates a column in the dataframe named Publication Year which is the year of the Print Publication Date if it exists or the year of the Online Publication Date if it doesn't None None
convertDates2Years Create new date fields with years from date fields in the report. A list of field names to convert. None
harmonizeRepositoryNames Standardize repository names in Dataset Reports. A list of repository synonyms (see CHORUSDataCleanup.ipynb for an example. None
readDateCreatedFromDOIMetadata Read DOI metadata from a getDOIMetadata output file (DataCite metadata) to get the date_created field for datasets and add it to the Dataset Report. The name of a DOI metadata output file None.

CHORUSRetrievals

The CHORUSRetrieval object holds a dictionary of related reports.

Properties

Property Description
organization The acronym of the organization that the report data comes from (typically NSF, USGS, or USAID). The fileNames start with these acronymns.
timestamp The timestamp (YYYYMMDD) of the data in the report, i.e., when it was retrieved from CHORUS)
report_d A dictionary of reports with keys = dataTypes

Functions

For a CHORUS Retrieval (cr) these functions are called as cr.function(arguments)

Function Description Arguments Returns
dataTypes: Get the data types for reports in the retrieval none list of dataTypes in the retrieval (default: ['all', 'authors', 'datasets'])
info: Get dataframe.info() for each dataframe in the retrieval none info()
data(dt): Get the data dataframe with dataType = dt from the retrieval dataType, one of ['all', 'authors', 'datasets'] data dataframe for dataType.
summary(dt): Get the data dataframe with dataType = dt from the retrieval dataType, one of ['all', 'authors', 'datasets'] summary dataframe for dataType.

Metadata

Release files for chorusReports 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chorusReports 0.0.11
File Size Uploaded Provenance Actions
chorusReports-0.0.11.tar.gz 12.7 kB Without provenance Details for chorusReports-0.0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chorusReports 0.0.11
File Interpreter ABI Platform Actions
chorusReports-0.0.11-py3-none-any.whl Python 3 none any Details for chorusReports-0.0.11-py3-none-any.whl

Total release size: 25.9 kB

Release files / chorusReports-0.0.11.tar.gz

Download URL chorusReports-0.0.11.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
20385c2f82ec05842b0117bd85c037e901da2e09e6395bc938fe26f3768f1850
BLAKE2b-256 checksum
How to use checksums
c4d71c2bd32119701579f5a39f1ce4f7698f838ffda1202340ac1d6aaacc5e97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / chorusReports-0.0.11-py3-none-any.whl

Download URL chorusReports-0.0.11-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
439d5722015f26590c86179d782f7761b307bda39af8a315aaa72991776e2882
BLAKE2b-256 checksum
How to use checksums
e7a4e4a4056526ce4f5ea48e427ae315ee1cad121143245947e376e6b6d2794e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Security for chorusReports 0.0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page