Code Monkey home page Code Monkey logo

dotplot's Introduction

Dotplot

Build Status Code Climate Coverage Status

Idea

Dotplot is a plot used mainly in biology for graphical visualisations of sequences' similarity. [Read more on Wikipedia] (https://en.wikipedia.org/wiki/Dot_plot_%28bioinformatics%29).

Why to create a new package?

There are many programs that attempt to create dotplots already. Unfortunately most of these programs was created long time ago and written in old versions of Java. This Python3 package will allow new generations of bioinformaticians to generate dotplots much easier.

Installation & usage

Instalation with pip

The easiest way to install this package with all dependencis is to use pip:

pip install dotplot

Manual installation

git clone https://github.com/kn-bibs/dotplot

To use graphical user interface, you will need to have pyqt5 installed, e.g. with:

sudo apt-get install python3-pyqt5

To use matplotlib for drawing, you need to have it installed, e.g. with:

sudo pip3 install matplotlib

Note: If you have chosen manual installation, use python3 dotplot command to run the program (while in the dotplot directory) instead of sole dotplot.

Basic usage

dotplot --fasta 1.fa 2.fa

To use graphical user interface, type:

dotplot --fasta 1.fa 2.fa --gui

You can also fetch sequences from various sources (at once):

dotplot --gui --ncbi NP_001009852 --uniprot P03086

Advanced options

You can set window size to be used in plot creation:

dotplot --fasta 1.fa 2.fa --gui --window_size 2

Furthermore, you can combine it with stringency:

dotplot --fasta 1.fa 2.fa --gui --window_size 2 --stringency 2

And you can use a similarity matrix to compare aminoacids:

dotplot --fasta 1.fa 2.fa --gui --window_size 2 --stringency 2 --matrix PAM120

Getting help

To access list of available options run command above with added option -h.

What will it do?

In the future our application will be able to read a wide range of input formats, and users will be able to parametrize alignment process and output format to their liking.

Dependencies & development

We are writing in Python3 and strict on code styling, with pep8 and pylint validation. We require all code merging to master to have at least 7,5 pylint score. To check this, at first install pytlint with pip3 and then, run the following command: python3 -m pylint dotplot.py, where in place of dotplot.py use any name of the module to be tested.

dotplot's People

Contributors

agreal1118 avatar bartma11 avatar behoston avatar chmielowyzboj avatar kinga322 avatar krassowski avatar maciosz avatar magickris93 avatar maryniak95 avatar pasliwa avatar pjanek avatar rlatawiec avatar sienkie avatar szymek2137 avatar vaira123 avatar xidron avatar

Watchers

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