GithubHelp home page GithubHelp logo

lelouchlamperougevi / pmcbib Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 25 KB

Validate bibtex files against PubMed database

License: GNU General Public License v3.0

TeX 60.19% Python 39.81%
latex bibtex citations validation pubmed

pmcbib's Introduction

pmcbib

If you're anything like me, then you probably use a citation manager such as Mendeley or Zotero, and use the browser plugin to conveniently add citations to your library. Everything is rainbows and unicorns until it's time for dissemination ๐Ÿ˜ฑ. Enter pmcbib, a friendly utility written in python that checks your .bib file against the PubMed database to find all the fudge-ups.

version 0.0.2.dev1 added support for aliasing and makes use of stdout/stderr (see example use case)

Dependencies

  • python 3.7
  • metapub
  • bibtexparser
  • python-Levenshtein
  • internet connection (duh!)

Installation

pip install git+https://github.com/LelouchLamperougeVI/pmcbib.git

Usage

pmcbib [-h] [-c config.json] [-o] [-r report.md] [-v] [-w L] file.bib

positional arguments:
  file.bib              ye olde bibtex file

optional arguments:
  -h, --help            show this help message and exit
  -c config.json, --config config.json
                        config file
  -o, --output          output automatically corrected bibtex entries on
                        STDOUT
  -r report.md, --report report.md
                        report outputted as a MarkDown file (default no
                        output)
  -v, --verbose         turn on verbose (overwrites -w)
  -w L, --warn L        minimum warning level to report on console (STDERR)

Examples

Generate a report for a given bibtex file

pmcbib -r report.md example.bib

to suppress warning messages:
pmcbib -r report.md -w 4 example.bib
or
pmcbib -r report.md example.bib 2> /dev/null

Automatically correct bibtex file and save as separate file

pmcbib -o example.bib > corrected.bib

pmcbib will automatically try to fix identified issues. However, it is strongly recommended for the user to go over the report before committing to the output.

Use custom configuration file

pmcbib -c ~/.config/pmcbib/config.json example.bib

pmcbib's People

Contributors

lelouchlamperougevi avatar

Stargazers

Naomi Most avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.