Alignment-free Dissimilarity Analysis & Comparison Tool; ADACT in short. This tool produces the distance matrix, species relation, phylogenetic trees based on a number of indices.
Applied for both macOS & Linux.
php 5.6.1+ is required, supports php 7+.
Edit the Config.php located at the root of the project, otherwise mail client, mysql server may not work. At least the
following constants are needed to be edited:
Interface Config{
const MYSQL_USER = 'root';
const MYSQL_PASS = 'root';
const MYSQL_DB = 'adact';
.
.
.
const MAIL_USER = 'example@gmail.com';
const MAIL_PASS = 'example_password';
const MAIL_FROM = 'example@gmail.com';
.
.
.
const WEB_ADDRESS = 'www.example.com/ADACT';
const WEB_DIRECTORY = '/ADACT/'; // Notice the trailing slash
}In Config.php file, you can also increase/decrease the following limitations:
- Maximum file upload size (by editing
MAX_UPLOAD_SIZEconstant) - The size of each FASTA sequence (by editing
MAX_FILE_SIZEconstant) - Maximum FASTA sequences allowed (by editing
MAX_FILE_ALLOWEDconstant)
You can also use INF (infinity) constant instead of integers in the above constants to remove any limitations. But
beware that MAX_UPLOAD_SIZE doesn't modify php.ini file, it only checks the uploaded file size. If you need to
increase upload file size, you'll need to edit php.ini file.
bash ./scripts/add_to_crontab.shphp -S 127.0.0.1:8080 ./router.php(Also works with Apache2 when htaccess and modrewrite are enabled)
GNU time is used to measure CPU and RAM usage.
On Ubuntu: (you'll need root privilege)
apt-get install timeOn CentOS:
yum install timeOn macOS: (using Homebrew)
brew install gnu-timemysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql(This process is only applied to Linux distributions with Apache2 Server)
- Check which
useris running:ps aux
- Add that user (assuming
www-data) to the group:sudo chgrp -R www-data ./ && sudo chmod -R g+w ./
See the README file inside the sql folder. Current sql file is adact_v4.5.sql.
Sample files are located in the Sample Input Files folder
The following two public datasets have been experimented on ADACT:
For the sake of convenience, two scripts have been added in the scripts folder.
./scripts/deploy.sh <sql_version>: Run this before committing as it'll switch the configuration file (ie.Config.php) to the factory mode, as well as take care of DB. It takes one argument (sql version number) as it backs up the new sql file automatically. Be sure to change the mysql password in thedeploy.shfile../scripts/revert.sh: Revert the configuration file to the one that you were using previously (if you were)
Use the project root as present working directory when running the above scripts.
- Default project directory:
./Projects(you can change this in theConfig.phpbut it's not recommended) - Default temporary directory:
./tmp(DON'T change this to/tmp, this is done on purpose)
- Change user info (other than password)
- Delete account