Skip to main content

ifeatpro (Physicochemical Feature Encoder for Protein Sequences)

A python package that generates 21 numerically encoded feature representation for protein sequences based on their physicochemical properties.

Note: ifeatpro is based on iFeature, a python based toolkit available at link. Here, we have packaged 21 alignment free feature encoding functions available in iFeature into a pip installable module for easy usage and improved accessibility of a protein feature encoding tool.

ifeatpro installation

pip install ifeatpro

ifeatpro usage

from ifeatpro.features import get_feature, get_all_features

Generating some random protein sequences and storing them in fasta format

import random


AA = "ACDEFGHIKLMNPQRSTVWY"

sequences = ["".join([random.choice(AA) for _ in range(150)]) for _ in range(5)]

!mkdir -p ifeatpro_data

fasta_file = "ifeatpro_data/seq.fa"
with open(fasta_file, 'w') as f:
    for i, seq in enumerate(sequences):
        f.write(f">enz_{i}")
        f.write("\n")
        f.write(seq)
        f.write("\n")

Getting all 21 feature encodings from protein sequences using ifeatpro

ifeatpro contains 21 features which are capable of numerically encoding protein sequences based on their physicochemical properties. They are:

  1. aac
  2. apaac
  3. cksaagp
  4. cksaap
  5. ctdc
  6. ctdd
  7. ctdt
  8. ctriad
  9. dde
  10. dpc
  11. gaac
  12. gdpc
  13. geary
  14. gtpc
  15. ksctriad
  16. moran
  17. nmbroto
  18. paac
  19. qsorder
  20. socnumber
  21. tpc

Using get_all_features function, an user can create all the 21 physicochemical encoding based feature extraction techniques provided by ifeatpro. The first argument of this function denotes the fasta file that contains protein sequences while the second argument denotes the output directory where the files will be stored as csv files.

get_all_features(fasta_file, "./ifeatpro_data/")

Creating a single feature encoding using ifeatpro

An user can also create any one of the 21 feature extraction techniques available in ifeatpro using the get_feature function. The function takes the fasta file as the first argument, feature encoding type as the second argument and output directory where the file will be stored as the third argument. For example if an user wants to create aac type feature encoding using the fasta_file that we created above and would like to store it in ifeatpro_data directory, they can run the following command:

get_feature(fasta_file, "aac", "ifeatpro_data/")

feature extraction techniques description

To get a detailed description of the feature extraction techniques used in ifeatpro, please refer to the Supplementary Document of the paper link to be added soon.

similar modules to encode protein sequences

Other modules that can be used to generate numerical encoding of protein sequences are:

  1. ngrampro link
  2. pssmpro link

Metadata

Release files for ifeatpro 0.0.3

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

Source distribution (sdist)

Source distribution for ifeatpro 0.0.3
File Size Uploaded
ifeatpro-0.0.3.tar.gz 35.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ifeatpro 0.0.3
File Interpreter ABI Platform
ifeatpro-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 70.2 kB

Release files / ifeatpro-0.0.3.tar.gz

Download URL ifeatpro-0.0.3.tar.gz
Size 35.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7d8d9d589a5e7415dbfa705236891e272ec328f27130b5633ae681f8e403fdb0
BLAKE2b-256 checksum
How to use checksums
49e48cd6e1563210a74477a48cb204ace5e85bb984db1d85116cfaa9461d5687
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release files / ifeatpro-0.0.3-py3-none-any.whl

Download URL ifeatpro-0.0.3-py3-none-any.whl
Size 34.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5510a94241622ef3002e7fe3d061036fbf230a15ec2bcf5fb36912b9ed453748
BLAKE2b-256 checksum
How to use checksums
fec8d283e8c0246909182ba74460caa6f46b2dbbf566e47ae7a9009c0cce50da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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