Skip to main content

Interface to WormBase (www.wormbase.org) curation data, including literature management and NLP functions

Project description

WBtools

Interface to WormBase curation database and Text Mining functions

Access WormBase paper corpus information by loading pdf files (converted to txt) and curation info from the WormBase database. The package also exposes text mining functions on papers' fulltext.

Installation

pip install wbtools

Usage example

Get sentences from a WormBase paper

from wbtools.literature.corpus import CorpusManager

paper_id = "000050564"
cm = CorpusManager()
cm.load_from_wb_database(db_name="wb_dbname", db_user="wb_dbuser", db_password="wb_dbpasswd", db_host="wb_dbhost",
                         paper_ids=[paper_id])
sentences = cm.get_paper(paper_id).get_text_docs(split_sentences=True)

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

wbtools-1.0.11.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

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

wbtools-1.0.11-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file wbtools-1.0.11.tar.gz.

File metadata

  • Download URL: wbtools-1.0.11.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for wbtools-1.0.11.tar.gz
Algorithm Hash digest
SHA256 072cbf2f2846fba3f1e0b5c710fb8fb00ad6c990458e09b650aa47d1e3868af0
MD5 243e9f8babc2d427ca3bf2a81c49e75e
BLAKE2b-256 b18584baac2d5e3af1385ec69e69cbf77d0db8b9cf090cc88c35cc4e327de3d4

See more details on using hashes here.

File details

Details for the file wbtools-1.0.11-py3-none-any.whl.

File metadata

  • Download URL: wbtools-1.0.11-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for wbtools-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 478b43c182027d3d9113ae67313255ef4e876e64d1b58ad85533d4761a1971df
MD5 9c2ba9b6a4e02f753f9817f963b2cdb9
BLAKE2b-256 3f03f682aa55364dd7b4ad89de7716f36494e2a4f712e8ecf17ceb9cbc004516

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