PyProteinAAIndex module

This module is used for obtaining the properties of amino acids or their pairs

from the aaindex database. You can freely use and distribute it. If you hava

any problem, you could contact with us timely!

Authors: Zhijiang Yao and Dongsheng Cao.

Date: 2016.06.04

Email: gadsby@163.com

PyProteinAAIndex.GetAAIndex1(name, path='.')[source]

Get the amino acid property values from aaindex1

Usage:

result=GetAAIndex1(name)

Input: name is the name of amino acid property (e.g., KRIW790103)

Output: result is a dict form containing the properties of 20 amino acids

PyProteinAAIndex.GetAAIndex23(name, path='.')[source]

Get the amino acid property values from aaindex2 and aaindex3

Usage:

result=GetAAIndex23(name)

Input: name is the name of amino acid property (e.g.,TANS760101,GRAR740104)

Output: result is a dict form containing the properties of 400 amino acid pairs

class PyProteinAAIndex.MatrixRecord[source]

Bases: PyProteinAAIndex.Record

Matrix record for mutation matrices or pair-wise contact potentials

extend(row)[source]
get(aai, aaj, d=None)[source]
median()[source]
class PyProteinAAIndex.Record[source]

Amino acid index (AAindex) Record

aakeys = 'ARNDCQEGHILKMFPSTWYV'
extend(row)[source]
get(aai, aaj=None, d=None)[source]
median()[source]
PyProteinAAIndex.get(key)[source]

Get record for key

PyProteinAAIndex.grep(pattern)[source]

Search for pattern in title and description of all records (case insensitive) and print results on standard output.

PyProteinAAIndex.init(path=None, index='123')[source]

Read in the aaindex files. You need to run this (once) before you can access any records. If the files are not within the current directory, you need to specify the correct directory path. By default all three aaindex files are read in.

PyProteinAAIndex.init_from_file(filename, type=<class PyProteinAAIndex.Record at 0x07A1DD88>)[source]
PyProteinAAIndex.search(pattern, searchtitle=True, casesensitive=False)[source]

Search for pattern in description and title (optional) of all records and return matched records as list. By default search case insensitive.