Code Monkey home page Code Monkey logo

phagcn's Introduction

PhaGCN

PhaGCN is a GCN based model, which can learn the species masking feature via deep learning classifier, for new Phage taxonomy classification. To use PhaGCN, you only need to input your contigs to the program.

Required Dependencies

  • Python 3.x
  • Numpy
  • Pytorch
  • Networkx
  • Pandas
  • Diamond

All these packages can be installed using Anaconda.

If you want to use the gpu to accelerate the program:

  • cuda 10.1
  • Pytorch-gpu

An easiler way to install

We recommend you to install all the package with Anaconda

After cloning this respository, you can use anaconda to install the environment.yaml. This will install all packages you need with gpu mode (make sure you have installed cuda on your system).

Usage (example)

Here we present an example to show how to run PhaGCN. We support a file named "contigs.fa" in the Github folder and it contain contigs simulated from E. coli phage. The only command that you need to run is python run_Speed_up.py --contigs contigs.fa -len 8000.

There are two parameters for the program: 1. --contigs is the path of your contigs file. 2. --len is the length of the contigs you want to predict. As shown in our paper, with the length of contigs increases, the recall and precision increase. We recommend you to choose a proper length according to your needs. The default length is 8000bp.

The output file is final_prediction.csv. There are three column in this csv file: "contig_name, median_file_name, prediction".

The given database only support prediction under the Caudovirales order. But you can change the database if required.

Notice

If you want to use PhaGCN, you need to take care of two things:

  1. Make sure all your contigs are virus contigs. You can separate bacteria contigs by using VirSorter or DeepVirFinder
  2. The script will pass contigs with non-ACGT characters, which means those non-ACGT contigs will be remained unpredict.

References

how to cite this tool:

Jiayu Shang, Jingzhe Jiang and Yanni Sun, Bacteriophage classification for assembled contigs using Graph Convolutional Network, ISMB/ECCB 2021, accepted.

Or

Shang, J., Jiang, J., & Sun, Y. (2021). Bacteriophage classification for assembled contigs using Graph Convolutional Network. arXiv preprint arXiv:2102.03746.

Supplementary information

The supplementary file of the paper can be found in the supplementary folder.

Contact

If you have any questions, please email us: [email protected]

phagcn's People

Contributors

kennthshang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.