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

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:

python -m treasureisland <DNA file>     

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

The sample outputs can be found in the repository folder 'output' -output_NC_002620.2.csv

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 :

python -m treasureisland ecoli.fasta   

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>/bsub.fasta") 

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.3.tar.gz (5.1 MB view details)

Uploaded Source

Built Distribution

treasureisland-1.0.3-py3-none-any.whl (5.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: treasureisland-1.0.3.tar.gz
  • Upload date:
  • Size: 5.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for treasureisland-1.0.3.tar.gz
Algorithm Hash digest
SHA256 2131585c930f125feec6476153207ec3b1df1a4e15d60cc4ccafeedd500c0cc2
MD5 8e5946c754f98831001df8c4e1e7adb8
BLAKE2b-256 cb276400fd5ccdca914d7a617499e779eda1225776fa51d035d881238812144a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: treasureisland-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for treasureisland-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 565579dd1d0d25e3757cb2f4cda89be201a255828a113a2aaf075f329a5c4afe
MD5 21a73f6e758bb6a2bd23eeaf2a4b3904
BLAKE2b-256 c3a959f55b9f5f8827697cbb6e338e7b423675719c35144c0ae91a19aa9827f8

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