Skip to main content

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>] [-ut <upper threshold value>] 

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

Upper Threshold:

User also has the ability to change the upper threshold value to change the precision and recall tradeoff. upper threshold is set to 0.80 by default.

example :

treasureisland ecoli.fasta -o gei_output -ut 0.95 Setting the upper threshold to 0.95 would increase the precision and decrease the recall performance.

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 -ut 0.95 

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 file.

seq = Predictor("<Path to DNA fasta file>/ecoli.fasta", "<output_file_path>") 

Optionally, change the upper threshold value.

seq.change_upper_threshold(0.9)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

treasureisland-1.0.7.tar.gz (5.6 MB view details)

Uploaded Source

Built Distribution

treasureisland-1.0.7-py3-none-any.whl (5.6 MB view details)

Uploaded Python 3

File details

Details for the file treasureisland-1.0.7.tar.gz.

File metadata

  • Download URL: treasureisland-1.0.7.tar.gz
  • Upload date:
  • Size: 5.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.9

File hashes

Hashes for treasureisland-1.0.7.tar.gz
Algorithm Hash digest
SHA256 f9c7ecb0119601f92352dbecda6765ee23d0e192a34c4f1c6a1191ce72e876cf
MD5 09bae6516df870a3f3ada017e455f072
BLAKE2b-256 e663d531655531c6c179331b8c7cadf43865f7ea8df7ec4eb9fea3aed5607d97

See more details on using hashes here.

File details

Details for the file treasureisland-1.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for treasureisland-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 80abd5d27a7ceeb2a442189227916dd36f61e194b6f67cdae97ea5df14b4d108
MD5 5fd8139d9ee01b7ff731263ad33ae27a
BLAKE2b-256 403bced5f46876eb712f74dff96105a9a9f486fd335af96b371158f0bc107674

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page