Giter Club home page Giter Club logo

ptc_data_extraction's Introduction

PTC_Data_Extraction

Extract disease data from PubTator Central for a given query (in this case, 'heart failure'). Link each disease with PMID and MESH ID for use in later projects.

This Python script does the following:

  1. Obtains list of PMIDs from PubMed for a specific search query
  2. Converts that list into a format searchable in PubTator Central (PTC)
  3. Uses PTC API to get annotated articles (right now just 100 but should be able to do up to 1000) for PMID list. Output is in Pubtator Format.
  4. Writes data to csv file, then reads back in and parses into a data frame.

Requirements

This script requires:

Both may be installed through pip, e.g., pip install biopython pandas.

Running the script

Run this script as python '.\PMID to BioC Retrieval Using PubMed and PTC APIs.py'

By default, the script searches for all documents corresponding to the query "heart failure" - please change the string for the search query in the script.

Output is written to "output.csv".

The data frame is not saved but may be passed to another function.

Credits

Developed by Marlee Zinsser in the Ping Lab at UCLA while working with Harry Caufield in Fall 2019.

ptc_data_extraction's People

Contributors

caufieldjh avatar mzinsser avatar

Watchers

 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.