Feature Extraction Package for Biological Sequences Based on Mathematical Descriptors
Home • Key Features • List of files • Dependencies • Installing • How To Use • Citation
Preprocessing
Before executing any method in this package, it is necessary to run a pre-processing script, to eliminate any noise from the sequences (e.g., other letters as: N, K …,). To use this script, follow the example below:
Important: This package only accepts sequence files in Fasta format as input to the methods.
To run the tool (Example): $ python3.7 preprocessing/preprocessing.py -i input -o output
Where:
-h = help
-i = Input - Fasta format file, e.g., test.fasta
-o = output - Fasta format file, e.g., output.fasta
Running:
$ python3.7 preprocessing/preprocessing.py -i dataset.fasta -o preprocessing.fasta
Chaos Game Representation
To use this model, follow the example below:
To run the code (Example): $ python3.7 methods/ChaosGameTheory.py -n number of datasets/labels -o output -r approach
Where:
-h = help
-n = number of datasets/labels
-o = output - CSV format file, e.g., test.csv
-r = approach, e.g., 1 = Classic Chaos Game Representation, 2 = Frequency Chaos Game Representation, 3 = Chaos Game Signal with Classic Representation, 4 = Chaos Game Signal with Frequency.
Running:
$ python3.7 methods/ChaosGameTheory.py -n 2 -o dataset.csv -r 1
Note Input sequences for feature extraction must be in fasta format.
Note This example will generate a csv file with the extracted features.