Skip to main content

Includes lookups for modifications, amino acids, and other data types.

Project description

tacular

Python package codecov PyPI version Python 3.12+ License

A helper package for peptacular and paftacular. Includes lookups for modifications, amino acids, and other data types.

Generate Data

See data_gen/README.md

Generating JSONs

It's possible to generate JSON objects for all parsed data used within tacular. This isn't used within tacular or its downstream packages, but may be useful in other projects, especially those not Python-based. This will be created from the data within the python package, so ensure that this is up to date. See data_gen/README.md for more info.

just gen-jsons

Overview

The following lookups are available:

Amino Acids

  • Standard and non-standard amino acid lookups
  • Query by single-letter code, three-letter code, or full name
  • Access to molecular properties (mass, formula, etc.)

Modifications

  • Post-translational modifications (PTMs)
  • Query by modification name, ID, or delta mass
  • Support for Unimod, PSI-MOD, RESID, XLMOD and GNOme

Elements

  • Chemical element data
  • Query by symbol, name
  • Isotope information and masses

Additional Data Types

  • Fragment ions
  • Common neutral deltas (mainly neutral losses)
  • mzPAF reference molecules
  • Common Proteases

Architecture

Each lookup contains three core components:

  • data.py: Auto-generated data file (should not be modified manually)
  • dclass.py: Dataclass definitions for the data structures
  • lookup.py: Lookup implementation with query methods

Each lookup provides multiple query options to enable data retrieval by various means. Lookups are cached for faster repeat queries.

Usage

import tacular as t

# Query amino acids
alanine = t.AA_LOOKUP['A']
carbon_13 = t.ELEMENT_LOOKUP['13C']

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

tacular-1.0.0.tar.gz (695.0 kB view details)

Uploaded Source

Built Distribution

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

tacular-1.0.0-py3-none-any.whl (361.0 kB view details)

Uploaded Python 3

File details

Details for the file tacular-1.0.0.tar.gz.

File metadata

  • Download URL: tacular-1.0.0.tar.gz
  • Upload date:
  • Size: 695.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tacular-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9d0588e80c818a57a4344c19ac4824b4d0ef6da779a88f08f707b7061896907d
MD5 9db7fbf8418b11b3450a1ae8e5497940
BLAKE2b-256 d14aa9cadb0300bda3b349d5f1a0c115667715ebdffa1c98e7076d0b93c5f662

See more details on using hashes here.

File details

Details for the file tacular-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: tacular-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 361.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tacular-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89769f47dcb163bcde778a304ea42a576d13e97e3555746ac934de8d3f6bb509
MD5 b830ce4373beaca80ce46f03e560133a
BLAKE2b-256 18abe13ce3c6c710ca7d2af0b5f4eece9e1dd604f0015f71389ded118259a001

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