Prediction of Genomic Islands
Project description
TreasureIsland
TreasureIsland python package is a machine learning-based Genomic Island prediction software, that uses an unsupervised representation of DNA for its prediction.
TreasureIsland was constructed from Benbow dataset.
Dependency :
Python >= 3.7
Installation:
Option1 - Use pip to install the package :
TreasureIsland can be installed by python package management system "pip" :
python -m pip install treasureisland
if treasureisland is already installed :
python -m pip install treasureisland --upgrade
Option2 - Locally install package:
git clone https://github.com/priyamayur/GenomicIslandPrediction.git
python -m pip install -e GenomicIslandPrediction
Usage:
Option1 - Run TreasureIsland directly from commandline :
Run TreasureIsland from commandline on your DNA fasta file (example DNA files provided here), output is given in csv format:
treasureisland mypath/<DNA file>.fasta [-o <output_file_path>]
Option2 - Run TreasureIsland from python :
The TreasureIsland package is used to find genomic island predictions which can be downloaded in csv, xlsx, txt file formats demonstrated in TreasureIsland package
Input file:
DNA sequence files in fasta format with a sequenceID.
example: >NC_002620.2 Chlamydia muridarum str. Nigg, complete sequence CACATAGCAAAACACTCAAAGTTTTTCAGCAAAAAAGCTTGTTGAAAAAATTGTTGACCGCCTGTTCACA....
Performance:
TreasureIsland takes 2-5 mins to run depending on the size of the input.
Output :
The results are shown in the following format for each genomic island:
example : NC_002620.2 1.0 130000.0 0.95597
Testing:
Repository contains some sample DNA files that can be downloaded to test the TreasureIsland. Note : github downloads fasta file in txt format (filename.fasta.txt).
example :
treasureisland ecoli.fasta -o gei_output
Running TreasureIsland package from python:
import the Predictor class from treasureisland package:
from treasureisland.Predictor import Predictor
Instantiate the sequence with the DNA sequence file path as the argument. The DNA file used can be a fasta or genbank file.
seq = Predictor("<Path to DNA fasta file>/ecoli.fasta", "<output_file_path>")
Get prediction data frame from sequence by running the predict method.
pred = seq.predict()
The predictions can be downloaded in text, csv, excel formats.
seq.predictions_to_csv(pred)
seq.predictions_to_excel(pred)
seq.predictions_to_text(pred)
Contact:
Feel free to contact at banerjee.p1104@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file treasureisland-1.0.5.tar.gz
.
File metadata
- Download URL: treasureisland-1.0.5.tar.gz
- Upload date:
- Size: 5.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6a3164d8850cc121975c2f7f5b1b49789b48e9ad3d9284e50631b84d13557f1 |
|
MD5 | 5490064633f05e48d2c615e1bc086501 |
|
BLAKE2b-256 | 9ed3a599fa6abc3ded27815565b867cfd819d69f5f903d0979850638ccd2b616 |
File details
Details for the file treasureisland-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: treasureisland-1.0.5-py3-none-any.whl
- Upload date:
- Size: 5.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 886734302633875bf0706fdb8d2e94ca04445b23e56b3465b76d2cd9849c8949 |
|
MD5 | 937199f088bdb3e804a646578460a934 |
|
BLAKE2b-256 | 575c53d8c1f0d7d0e8ce8f558ff872433cbe66f24b43d86f50cc823377513d31 |