Giter Site home page Giter Site logo

pubmed-bib's Introduction

Convert PubMed ID (PMID) to BibTex Reference

This is a very simple tool that searches the given PMID(s) using PubMed's REST api, get the reference information, and convert to a BibTex format.

Installation

$ git clone https://github.com/zhuchcn/pubmed-bib.git
$ cd pubmed-bib
$ pip install -e .

Search a single PMID

A single PMID can be searched using following command.

$ pubmed-bib --id 30440093

A reference record in BibTex format will be printed in terminal.

@article{park2018evaluation,
    title={Evaluation of gastric microbiome and metagenomic function in patients with intestinal metaplasia using 16S rRNA gene sequencing},
    author={Park, Chan Hyuk and Lee, A-Reum and Lee, Yu-Ra and Eun, Chang Soo and Lee, Sang Kil and Han, Dong Soo},
    journal={Helicobacter},
    volume={},
    pages={e12547},
    year={2018}
}

Or append a reference ot an existing BibTex file

$ pubmed-bib --id 30440093 --output-file reference.bib

Batch search

A batch search can be done by providing a .txt file with a PMID in each line, and all references are ready for you.

pubmed-bib --input-file pmid.txt --output-file references.bib

pubmed-bib's People

Contributors

zhuchcn avatar

Stargazers

Xi Chen avatar Serdar Balcı avatar  avatar Daniel Thaagaard Andreasen avatar

Watchers

James Cloos avatar

pubmed-bib's Issues

Thank you!

I’ve been looking for a light-weight way to manage bibtex references from pubmed. Everything else I have found is very bloated and the code is very difficult to modify. I could easily read your code. Your style is very functionally oriented, clean and easy for me to understand. (No deeply nested classes etc.) I hope you don’t mind, but I am going to copy your function into my github repository (https://github.com/prairie-guy/sci-hub)and modify it for my own use. I will provide attribution.

Again, I just wanted you to know that I really appreciate your contribution!

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.