Skip to main content

Lookup PubMed records and make Publication objects with info about a scientific publication

Project description

https://badge.fury.io/py/pubmed-lookup.svg https://travis-ci.org/mfcovington/pubmed-lookup.svg?branch=master https://coveralls.io/repos/mfcovington/pubmed-lookup/badge.svg?branch=master&service=github

pubmed-lookup is package to lookup PubMed records and make Publication objects with info about a scientific publication.

Source code is available on GitHub at mfcovington/pubmed-lookup.

Installation

PyPI

pip install pubmed-lookup

GitHub (development branch)

pip install git+http://github.com/mfcovington/pubmed-lookup.git@develop

Usage

  • Retrieve a PubMed record:

from pubmed_lookup import PubMedLookup

# NCBI will contact user by email if excessive queries are detected
email = ''
url = 'http://www.ncbi.nlm.nih.gov/pubmed/22331878'
lookup = PubMedLookup(url, email)
  • Create a Publication object:

from pubmed_lookup import Publication

publication = Publication(lookup)
  • Access the Publication object’s attributes:

print(
"""
TITLE:\n{title}\n
AUTHORS:\n{authors}\n
JOURNAL:\n{journal}\n
YEAR:\n{year}\n
MONTH:\n{month}\n
DAY:\n{day}\n
URL:\n{url}\n
PUBMED:\n{pubmed}\n
CITATION:\n{citation}\n
MINICITATION:\n{mini_citation}\n
ABSTRACT:\n{abstract}\n
"""
.format(**{
    'title': publication.title,
    'authors': publication.authors,
    'journal': publication.journal,
    'year': publication.year,
    'month': publication.month,
    'day': publication.day,
    'url': publication.url,
    'pubmed': publication.pubmed_url,
    'citation': publication.cite(),
    'mini_citation': publication.cite_mini(),
    'abstract': repr(publication.abstract),
}))
  • Output of example:

    TITLE: Arabidopsis synchronizes jasmonate-mediated defense with insect circadian behavior.

    AUTHORS: Goodspeed D, Chehab EW, Min-Venditti A, Braam J, Covington MF

    JOURNAL: Proc Natl Acad Sci U S A

    YEAR: 2012

    MONTH: 3

    DAY: 20

    URL: http://www.pnas.org/content/109/12/4674

    PUBMED: http://www.ncbi.nlm.nih.gov/pubmed/22331878

    CITATION: Goodspeed D, Chehab EW, Min-Venditti A, Braam J, Covington MF (2012). Arabidopsis synchronizes jasmonate-mediated defense with insect circadian behavior. Proc Natl Acad Sci U S A 109(12): 4674-7.

    MINICITATION: Goodspeed D - Covington MF - 2012 - Proc Natl Acad Sci U S A

    ABSTRACT: Diverse life forms have evolved internal clocks enabling them to monitor time and thereby anticipate the daily environmental changes caused by Earth’s rotation. The plant circadian clock regulates expression of about one-third of the Arabidopsis genome, yet the physiological relevance of this regulation is not fully understood. Here we show that the circadian clock, acting with hormone signals, provides selective advantage to plants through anticipation of and enhanced defense against herbivory. We found that cabbage loopers (Trichoplusia ni) display rhythmic feeding behavior that is sustained under constant conditions, and plants entrained in light/dark cycles coincident with the entrainment of the T. ni suffer only moderate tissue loss due to herbivory. In contrast, plants entrained out-of-phase relative to the insects are significantly more susceptible to attack. The in-phase entrainment advantage is lost in plants with arrhythmic clocks or deficient in jasmonate hormone; thus, both the circadian clock and jasmonates are required. Circadian jasmonate accumulation occurs in a phase pattern consistent with preparation for the onset of peak circadian insect feeding behavior, providing evidence for the underlying mechanism of clock-enhanced herbivory resistance. Furthermore, we find that salicylate, a hormone involved in biotrophic defense that often acts antagonistically to jasmonates, accumulates in opposite phase to jasmonates. Our results demonstrate that the plant circadian clock provides a strong physiological advantage by performing a critical role in Arabidopsis defense.”

Version 0.1.3

Revision History

0.1.3 2015-07-29

  • Add tests for Publication and PubMedLookup

  • Configure Travis-CI

  • Configure Coveralls

  • Add PyPI, Travis-CI, and Coveralls badges to README

0.1.2 2015-06-24

  • Prepare for distribution via PyPI

0.1.1 2015-05-26

  • Return an abbreviated citation for a Publication with cite_mini()

  • Change install docs to use GitHub link, since not yet on PyPI

0.1.0 2015-05-22

  • Lookup PubMed records and make Publication objects with info about a scientific publication

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pubmed-lookup-0.1.3.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pubmed_lookup-0.1.3-py32-none-any.whl (10.4 kB view details)

Uploaded Python 3.2

File details

Details for the file pubmed-lookup-0.1.3.tar.gz.

File metadata

  • Download URL: pubmed-lookup-0.1.3.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pubmed-lookup-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2fe5be58d5b4aacecd8d28860b4c1be7b16956d102c314958f6b306e9c5ce4a5
MD5 968e2532d126ef328a4d0c89c9b2cee5
BLAKE2b-256 ce0db0324fdbfa4590c2db4cb524c49c3aff058abd05c8ef0d9de8e9bac07833

See more details on using hashes here.

File details

Details for the file pubmed_lookup-0.1.3-py32-none-any.whl.

File metadata

File hashes

Hashes for pubmed_lookup-0.1.3-py32-none-any.whl
Algorithm Hash digest
SHA256 4f356f9425465847302ffd4b5d91af788176eb5d2ac0f09c62dbd94414923cd4
MD5 94aed2913584e413e17ccf7d333bcf1d
BLAKE2b-256 2c031ac06db4a461d386741a77566e67e3312b23f4ebb4efef524a71d3f27db1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page