GithubHelp home page GithubHelp logo

kfwins2022 / bincrisp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from happykhan/bincrisp

0.0 0.0 0.0 746 KB

Find CRISPRS in genomes using pilercr & draws a matrix

License: GNU General Public License v3.0

Python 100.00%

bincrisp's Introduction

BinCrisp

binCrisp is a simple script to detect CRISPR sequences from whole genome sequences using pilercr and produces visulisation matrix of CRISPR regions (in svg using svgwrite)

Dependencies include:

Be sure these are installed and on your path. See USAGE for optional parameters. Easiest way to set up svgwrite is with pip:

pip install -r requirements.txt

binCrisp has one module (at the moment): findcr

findcr

findcr is the main module of the script. It requires a directory with all the genomes you wish to use and an file name to name all the output.

It combines all genomes sequences in input directory and it runs pilercr from the path. The results from pilercr are summarised and used to draw and presence absence matrix as svg using svgwrite:

python binCrisp.py findcr GenomeDir/ OutputFileName

The -d or --draw2 flag will space out CRISPR results into a grid to easily show presence/ absence:

python binCrisp.py findcr -d GenomeDir/ OutputFileName

binCrisp output will include;

  • <outputname> (text report from binCrisp itself, this defines the CRISPR sequence attached to each ID number in the figure at the bottom.)
  • <outputname>.txt (text report of output from pilercr)
  • <outputname>.svg (SVG Figure with a matrix of presence and absence of unique CRISPR sequence.)

See USAGE i.e. "python binCrisp.py findcr -h" for optional parameters.

Worked Example

The runex directory has a test case to check if binCrisp is running correctly. Dependencies include:

binCrisp-Example.py is a quick example test of the binCrisp script. It requires reference genes and remote file list. (Default: fas-loc in runex dir). Just run:

'python binCrisp-Example.py -v'

This script runs an example case for the binCrisp script, based off 11 E. coli genomes (& E. fergusonii) downloaded from a remote server (listed in fas-loc). This script should be run from the runex folder in the parent binCrisp dir. This script will check Dependencies, format input files, and run binCrisp.py

binCrisp output will include:

  • example (text report from binCrisp itself, this defines the CRISPR sequence attached to each ID number in the figure at the bottom.)
  • example.txt (text report of output from pilercr)
  • example.svg (SVG Figure with a matrix of presence and absence of unique CRISPR sequence.) [Shown below]

images/example.png

Total Runtime: ~3 minutes.

Licence

Nabil-Fareed Alikhan <[email protected]>. (C) 2013.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

bincrisp's People

Contributors

happykhan avatar pyup-bot 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.