No project description provided
Project description
reference_handler
A Python package that creates a consolidated list of references (BibTex, RIS) of scientific material used in a Python package.
Motivation
Authors of modeling tools (scientific software, method or model developers) currently find it difficult to get fair attribution to their software and scientific work. Scientific software developers create tools that do not always get cited, as a typical citable scientific article might not exist. Although new mechanisms for more directly citing software have been recently created (i.e. Zenodo), they have not gained widespread use in the community of computational molecular science.
Method and model developers face a similar problem. Consider for instance a molecular dynamics practitioner who needs to develop a new force field using a specialized quantum mechanical calculation. The practitioner might not be fully familiar with the correct references to use for the quantum mechanical software and methods. To correctly include the references, the model developer might spend a considerable amount of time finding out which papers to cite. This problem is exponentially exacerbated in work that involves complex workflows running hundreds of different software components that might involve different areas of computational science.
Goal
The goal of the reference handler is to provide an easy mechanism for developers to record the appropriate references so that users of tools can provide a complete set of citations for a particular run of the software in a form convenient for the user.
The output of reference handler is a consolidated list of references (BibTeX, RIS) to go into the paper with as little effort as possible on the users part.
Audience
1. Method and scientific software developers.
2. Computational molecular science practitioners
Package overview
The reference handler is comprised of the following:
1. Central SQLite3 database. It contains two tables. The first is named citation and holds the essential data associated to each unique citation, such as the raw citation text and its ID number. The second is the context table. It contains information about the context in which a given citation was used. For instance, the function where the citation was used or the number of times the citation was "mentioned" by any function of your Python package.
Each citation can have many contexts, yielding a one-to-many relationship between the two tables.
**2. Functions to ease the interaction with central database. ** Examples are a function to cite a desired reference or a function to dump the contents of the database into a .bib file for subsequent compliation using BibTeX.
Minimal example
import reference_handler
lj_citation = """
@article{lj1924,
author = {J. E. Jones and Sydney Chapman },
title = {On the determination of molecular fields. \&\#x2014;II. From the equation of state of a gas},
journal = {Proceedings of the Royal Society of London. Series A, Containing Papers of a Mathematical and Physical Character},
volume = {106},
number = {738},
pages = {463-477},
year = {1924},
doi = {10.1098/rspa.1924.0082},
}
"""
def lennard_jones(sigma, epsilon, rij):
rf.cite(raw=lj_citation, alias='lj_citation', module='lennard_jones',
level=1, note='The first version of the Lennard-Jones potential')
sig_by_r6 = (sigma / rij ** 6)
sig_by_r12 = (sig_by_r6 ** 2)
return 4.0 * epsilon * (sig_by_r12 - sig_by_r6)
rf = reference_handler.Reference_Handler('database.db')
sigma = 3.54
epsilon = 98.0
rij = 20.0
lj_energy = lennard_jones(sigma, epsilon, rij)
rf.dump(outfile='bibliography.bib')
Installation
Documentation
Contribute
Citation
Copyright
Copyright (c) 2019, MolSSI
Acknowledgements
Project based on the Computational Molecular Science Python Cookiecutter version 1.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file reference_handler-0.9.1.tar.gz
.
File metadata
- Download URL: reference_handler-0.9.1.tar.gz
- Upload date:
- Size: 48.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91db08870b6cf37bd9a595046f84b2ed014a948366552d4705288c3da4fffa8f |
|
MD5 | 85d90ac59b02acbfa8a5d00f55f65a71 |
|
BLAKE2b-256 | 50fc669668be86008afab3f43cd637ca92e66e9c74be550883471bb96d058241 |
File details
Details for the file reference_handler-0.9.1-py3.9.egg
.
File metadata
- Download URL: reference_handler-0.9.1-py3.9.egg
- Upload date:
- Size: 59.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f6e2de82cd8013177b4445f16264e13591e1f3bdc1a15768a4ba094ab7f0a76 |
|
MD5 | fd4c9c62939f913ee5e660ca61b61df2 |
|
BLAKE2b-256 | 6db16545999635b2af9531e0145725ff5601b806df87c408575850e887b80367 |
File details
Details for the file reference_handler-0.9.1-py2.py3-none-any.whl
.
File metadata
- Download URL: reference_handler-0.9.1-py2.py3-none-any.whl
- Upload date:
- Size: 32.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 874f3ed0d328b1fb29ee829b218222117dd6938c6acc29a6df4b42ada963d479 |
|
MD5 | 7309c4e131d271afa77734fe0f762ec9 |
|
BLAKE2b-256 | 6586473a9e1a93c68b3ba0356193e7a80cda3abc88d9b255df678fe4f1234b51 |