查找PubMed记录并使用有关科学出版物的信息创建出版物对象

pubmed-lookup的Python项目详细描述


PyPI VersionBuild StatusTest CoverageCode Health

pubmed-lookup是一个python包,用于查找pubmed记录并使用有关科学出版物的信息创建发布对象。

源代码可以在github的mfcovington/pubmed-lookup上找到。

Installation

pypi

pip install pubmed-lookup

github(开发分支)

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

Usage

  • 检索PubMed记录:

    frompubmed_lookupimportPubMedLookup# NCBI will contact user by email if excessive queries are detectedemail=''url='http://www.ncbi.nlm.nih.gov/pubmed/22331878'lookup=PubMedLookup(url,email)
  • 创建发布对象:

    frompubmed_lookupimportPublicationpublication=Publication(lookup)# Use 'resolve_doi=False' to keep DOI URL
  • 访问发布对象的属性:

    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),}))
  • 示例输出:

    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.”

Command-Line Tools

pubmed-citation

  • 获取PubMed记录的引用(都给出相同的结果):

    pubmed-citation 22331878
    pubmed-citation http://www.ncbi.nlm.nih.gov/pubmed/22331878
    
  • 示例输出:

    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.

  • 示例输出(使用--mini选项):

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

pubmed-url

版本0.2.1

Revision History

0.2.1 2016年1月22日

  • 更改导致travis ci失败的pubmed_lookup.command_line的导入

0.2.0 2016-01-22

  • 创建命令行工具(pubmed-citation)以快速检索pubmed id/url的引用
  • 创建命令行工具(pubmed-url)以快速检索pubmed id/url的文章和doi url
  • 通过不解析doi url(Publication(pubmed_record, resolve_doi=False))来添加节省时间的选项
  • 清理文档

0.1.5 2016-01-08

  • 为没有月份信息的发布添加异常(感谢sasha cuerda!)

0.1.4 2015年12月24日

  • 解决PEP8错误
  • 重构代码使其更干净
  • 配置横向配置并添加代码运行状况徽章
  • 将github安装说明转换为从development branch安装

0.1.3 2015年7月29日

  • 添加发布和pubmedlookup的测试
  • 配置Travis CI
  • 配置工作服
  • 在自述文件中添加pypi、travis ci和工作服徽章

0.1.2 2015年6月24日

  • 准备通过PYPI分发

0.1.1 2015年5月26日

  • 返回带有cite_mini()的出版物的缩写引文
  • 将安装文档更改为使用github链接,因为pypi上还没有

0.1.0 2015年5月22日

  • 查找PubMed记录并使用有关科学出版物的信息创建出版物对象

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java GridBagLayout不填充区域   java Memozied Fibonacci未运行与常规Fibonacci解决方案   Java Web启动未启动问题   Java中异常和if-then的区别   java从命令提示符运行批处理文件获取错误   socket在Java中验证SSL证书的公共名称   如何在JAVA中检查字符串数组中的相等字   用java语言将音频文件转换成文本文件的语音识别   java为什么foo(1,2,3)没有传递给varargs方法foo(对象…)作为整数[]   java通过蓝牙将奇怪的数据从Arduino传输到Android   java ContainerRequestFilter获取空entitystream   java如何从安卓 studio中删除不兼容类型错误   基本Java错误   在Spring引导中使用REST API时发生java错误   javascript通过从SQL查询派生的URL打开页面