propy.AAIndex¶
This module is used for obtaining the properties of amino acids or their pairs from the aaindex database.
-
propy.AAIndex.
GetAAIndex1
(name: str, path: Optional[str] = '.') → Dict[str, float][source]¶ Get the amino acid property values from aaindex1.
Parameters: name (str) – name of amino acid property (e.g., KRIW790103) Returns: result – contains the properties of 20 amino acids Return type: Dict[str, float] Examples
>>> result = GetAAIndex1("KRIW790103")
-
propy.AAIndex.
GetAAIndex23
(name: str, path: Optional[str] = '.') → Dict[str, float][source]¶ Get the amino acid property values from aaindex2 and aaindex3.
Parameters: name (str) – name of amino acid property (e.g. TANS760101, GRAR740104) Returns: result – contains the properties of 400 amino acid pairs Return type: Dict[str, float] Examples
>>> result = GetAAIndex23("TANS760101")
-
class
propy.AAIndex.
MatrixRecord
[source]¶ Bases:
propy.AAIndex.Record
Matrix record for mutation matrices or pair-wise contact potentials.
-
class
propy.AAIndex.
Record
[source]¶ Bases:
object
Amino acid index (AAindex) Record.
-
aakeys
= 'ARNDCQEGHILKMFPSTWYV'¶
-
-
propy.AAIndex.
grep
(pattern)[source]¶ Search for pattern in title and description of all records (case insensitive) and print results on standard output.
-
propy.AAIndex.
init
(path: Optional[str] = None, index: str = '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.