Skip to main content

aaindex (In Development)

alt text

Python package for working with AAIndex database (https://www.genome.jp/aaindex/)

AAIndex

AAIndex pytest Platforms PythonV License: MIT Build Build Status Issues Size Commits

Table of Contents

Introduction

Requirements

Installation

Install the latest version of aaindex using pip:

pip3 install aaindex

Install by cloning repository:

git clone https://github.com/amckenna41/aaindex.git
python3 setup.py install

Usage

The AAIndex module is made up of the AAIndex class which itself has all the functions/attributes of the package, so when importing the module you have to import the class as well.

from aaindex.aaindex import aaindex

Get record from AAIndex module

The AAIndex class offers diverse functionalities for obtaining any element from any record in the database. Each record is stored in json format in a class attribute called aaindex_json. You can search for a particular record by its index/record code, description or reference. You can also get the index category, and importantly its associated amino acid values.

from aaindex.aaindex import aaindex

full_record = aaindex['CHOP780206']   #get full AAI record
''' Above statement will return -> 
{'description': 'Normalized frequency of N-terminal non helical region (Chou-Fasman, 1978b)', 'notes': '', 'refs': "Chou, P.Y. and Fasman, G.D. 'Prediction of the secondary structure of proteins from their amino acid sequence' Adv. Enzymol. 47, 45-148 (1978); Kawashima, S. and Kanehisa, M.                     'AAindex: amino acid index database.'  Nucleic Acids Res. 28, 374 (2000).", 'values': {'-': 0, 'A': 0.7, 'C': 0.65, 'D': 0.98, 'E': 1.04, 'F': 0.93, 'G': 1.41, 'H': 1.22, 'I': 0.78, 'K': 1.01, 'L': 0.85, 'M': 0.83, 'N': 1.42, 'P': 1.1, 'Q': 0.75, 'R': 0.34, 'S': 1.55, 'T': 1.09, 'V': 0.75, 'W': 0.62, 'Y': 0.99}}
'''
#get individual elements of AAIndex record
record_values = aaindex['CHOP780206']['values']
record_description = aaindex['CHOP780206']['description']
record_references = aaindex['CHOP780206']['refs']

Get category from AAIndex record

"""
Categories: 
Each AAIndex record is classified into 1 of 8 categories: Charge, Composition, Flexibility, Geometry, Hydrophobic, Meta, 
Observable, Polar and Secondary Structure. The record categories are parsed from the aaindex_categories.txt file and can be accessed for each record via the get_category_from_record() function.
"""
category = aaindex.get_category_from_record('CHOP780206')

Get total number of AAIndex records

#get total number of records in AAI database
print(aaindex.get_num_records())

Get list of all AAIndex record names

#get list of all AAIndex record names
print(aaindex.get_record_names())

Directories

  • /tests - unit and integration tests for aaindex package.
  • /aaindex - source code and all required external data files for package.
  • /images - images used throughout README.

Tests

To run all tests, from the main aaindex folder run:

python3 -m unittest discover

To run main test module, from the main aaindex folder run:

python -m unittest tests.test_aaindex -v

Contact

If you have any questions or comments, please contact amckenna41@qub.ac.uk or raise an issue on the Issues tab.

Back to top

Release files for aaindex 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aaindex 0.0.1
File Size Uploaded
aaindex-0.0.1.tar.gz 292.5 kB Details

Release files / aaindex-0.0.1.tar.gz

Download URL aaindex-0.0.1.tar.gz
Size 292.5 kB
Tags Source
SHA-256 checksum
How to use checksums
be76c742f6d6d0bd6ecb04a61cb3dc87903e5688640c63de94a144bd24e1b4a4
BLAKE2b-256 checksum
How to use checksums
392a998f9453a10ff54de0b6ee454a1fc44f24eab9794a2915c07fe0b7fc19b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3

Release history Release notifications | RSS feed

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.5

3 release files

1.0.4

3 release files

1.0.3

1 release file

0.1.0

3 release files

0.0.2

3 release files

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page