Skip to main content

suck, parse identifiers or accession numbers

Project description

\n# parseID: suck, parse identifiers or accession numbers

Introduction

parseID is a bioinformatics data structure library optimized for sucking identifiers or accession numbers into memory, parse those identifiers accession numbers to each other.

Identifiers or accession numbers are defined and referenced by various biological databases. Their number could be million size or even billion level. Some data operations, such as query or parse, are very common.

parseID employs Data structure "trie" and "ditrie". Trie could suck tremendous identifiers into memory at a time. Ditrie could suck a large number of mapping of identifiers. Through the trie and ditrie, huge data operations including insert, get, search, delete, scan etc could be quickly called.

testing

pytest -s tests

quick start

There is one example about how huge accession numbers are sucked into Trie. The mapping file could be downloaded from https://ftp.ncbi.nlm.nih.gov/gene/DATA/gene_refseq_uniprotkb_collab.gz into local space. Retrieve 176,513,729 (03/25/2024) UniProt Accession numbers from the file and feed them into Trie. Showed as the example below, accession numbers are stored in the object uniprotkb_acc_trie.

from parseid import ProcessID
infile = 'gene_refseq_uniprotkb_collab'
uniprotkb_acc_trie = ProcessID(infile).uniprotkb_accession()

Retrieve pairs of NCBI protein accession number and UniProt Accession numbers from file and feed them into Ditrie. Showed as the example below, the mapping fo two accession numbers are stored in the object map_trie, which is ready for query or parsing.

from parseid import ProcessID
infile = 'gene_refseq_uniprotkb_collab'
ncbi_uniprotkb_ditrie = ProcessID(infile).map_ncbi_uniprotkb()

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

parseid-0.1.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

parseid-0.1.4-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file parseid-0.1.4.tar.gz.

File metadata

  • Download URL: parseid-0.1.4.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for parseid-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a3a68b24d9f986272e0d21a9b516adf69bd9a8942c01a369ca2963a7544c66f3
MD5 fbe6c95dad80ef2559e639527d47093c
BLAKE2b-256 0f2a879160723b1e3f580f935f60f6de5bfcc88e7a39dda6bf1a8b24dbdcf900

See more details on using hashes here.

File details

Details for the file parseid-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: parseid-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for parseid-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 572a5f1ae7e20e26355a0926a8fb37525fe1735d19c7bd53f62203850e6f968e
MD5 a765aefe26e02dcc9135802e6a66fd7d
BLAKE2b-256 b5dbc3d770f71f61ab6996baee7d8aa6b53d7df8753a41144b7690535734818c

See more details on using hashes here.

Supported by

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