Giter VIP home page Giter VIP logo

plot_mitochondrial_genome_with_circos's Introduction

plot_mitochondrial_with_circos

This is a set of hacky scripts which takes a mitochondrial FASTA + annotation from MITOS in BED format, and produces a .svg figure using the CIRCOS plotting tool.

If you have annotation in BED format for another type of circular genome, this should work with relatively minor modifications.

Software dependencies:

  1. CIRCOS (http://circos.ca)
  2. Seqkit (https://github.com/shenwei356/seqkit)

Data dependencies / workflow:

  1. Get a mitochondrial genome in FASTA format. You may want to "rotate" the sequence so that the break in the FASTA file is in the AT-rich region (the presumed replication origin for mitochondria)

In my experience, mapping Illumina short reads to a phylogenetically related mitochondrial genome, and assembling with SPAdes works decently. Your mileage may vary. If the assembly seems mostly complete, but is perhaps split onto multiple contigs, I'll go in with Bandage (https://rrwick.github.io/Bandage/), and pick the path around the circular assembly graph that is best supported by the coverage.

  1. Annotate that mitochondrial genome with the MITOS mitochondrial annotation server http://mitos.bioinf.uni-leipzig.de/index.py

Bernt, M., Donath, A., Jühling, F., Externbrink, F., Florentz, C., Fritzsch, G., Pütz, J., Middendorf, M., and Stadler, P.F. (2013). MITOS: Improved de novo metazoan mitochondrial genome annotation. Molecular Phylogenetics and Evolution 69, 313–319.

  1. Append annotation to the BED file for the features that MITOS doesn't support. Here is an example:

To add features (such as the AT-rich region), you have to add them to your bed file. See below for an example.
The "AT-rich" and "IGNOREME" have particular plotting parameters (colored, has text, doesn't have text etc) that are setup in plots.conf

  • Photinus_pyralis_mito_genome_v4 15000 16079 AT-rich 0.0 +
  • Photinus_pyralis_mito_genome_v4 0 200 IGNOREME 0.0 +
  • Photinus_pyralis_mito_genome_v4 2764 3707 TRU 0 +
  • Photinus_pyralis_mito_genome_v4 2764 2839 IGNOREME 0 +
  • Photinus_pyralis_mito_genome_v4 2840 2915 IGNOREME 0 +
  • ...
  1. Edit the used_commands.txt Bash script to point to the appropriate files.

  2. Run the used_commands.txt Bash script, from the directory with the ./*.conf files

  3. You may need to edit the various ./*.conf files to get the figure looking how you want it to. See the CIRCOS documentation.

  4. Enjoy your figure:

alt tag

plot_mitochondrial_genome_with_circos's People

Contributors

photocyte avatar

Watchers

James Cloos 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.