Package rdkit :: Package Dbase :: Package Pubmed :: Module PubmedUtils

[hide private]
[frames] | no frames]

# Module PubmedUtils

source code

Functions | [hide private]

FillParagraph(text, width=70, indentLinesBy=0) >>> txt = "123 567 90 123\n456 89\n" >>> print FillParagraph(txt,width=10) 123 567 90 123 456 89 | source code

RecordsToPubmedText(records) Exports a sequence of JournalArticleRecords to a Medline text... | source code

GetSearchURL(term, db=`'``PubMed``'`) | source code

_test() | source code

Variables | [hide private]

| __package__ = ``'``rdkit.Dbase.Pubmed``'``

Imports: re, urllib, QueryParams

Function Details | [hide private]

### FillParagraph(text, width=70, indentLinesBy=0)

source code

    >>> txt = "123 567 90 123\n456 89\n"
    >>> print FillParagraph(txt,width=10)
    123 567 90
    123 456 89

    >>> print FillParagraph(txt,width=10,indentLinesBy=3)
    123 567 90
       123 456
       89
    >>> txt = '123 567 \n'
    >>> print FillParagraph(txt,width=10)
    123 567

### RecordsToPubmedText(records)

source code

    Exports a sequence of JournalArticleRecords to a Medline text
    format (not XML) that can be imported by EndNote