Giter Club home page Giter Club logo

search_pubmed_pymed's Introduction

search_pubmed_pymed

Searches for articles in PubMed using an user input, and outputs an Excel table with the results. This scripts uses the python library pymed.

AUTHOR AND CONTACT

Script made by David Requena [02/17/2020]

The Rockefeller University. New York, USA.

Contact: [email protected] / [email protected]

DESCRIPTION

This code asks the user for a query to be searched in PubMed. This can include Field Tags: https://www.ncbi.nlm.nih.gov/books/NBK3827/#pubmedhelp.Search_Field_Descriptions_and

Then, it retrieves the PubMed ID (PMID), publication date, the title, list of authors (separated by semicolon), journal name, DOI, keywords and abstract. And finally saves the info in a table (in MS Excel .xlsx format) in the current directory.

REQUISITES

You need to have installed Python 3 (https://www.python.org/downloads/) and the following modules:

  1. pandas -> can be installed by writting in the Terminal: pip install pandas
  2. pymed -> can be installed by writting in the Terminal: pip install pymed
  3. openpyxl -> can be installed by writting in the Terminal: pip install openpyxl

USAGE

Just doble-click on the script to execute it. This can also be called from the Terminal. Then, the program will ask you to:

First, provide a query. Here you have two equivalent examples:

Example 1: (Fowlpox OR FPV) AND (Reticuloendotheliosis OR REV)
Example 2: (Fowlpox[All Fields] OR FPV[All Fields]) AND (Reticuloendotheliosis[All Fields] OR REV[All Fields])

Second, provide an e-mail address (optional). You can just say no.

Third, the maximum number of results desired.

I'm including an example of the output table.

LIMITATIONS

This script truncates the titles and abstracts when the text has italics or special characters. For better results, check my other script search_pubmed_entrez.

CREDITS

I used the following links as references:

  1. https://stackoverflow.com/questions/57053378/
  2. https://www.kaggle.com/summerkrankin/pubmed-download-als

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.