Coder Social home page Coder Social logo

nickp60 / blobtools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drl/blobtools

1.0 2.0 1.0 30.02 MB

Modular command-line solution for visualisation, quality control and taxonomic partitioning of genome datasets

License: GNU General Public License v3.0

Python 99.64% Dockerfile 0.36%

blobtools's Introduction

BlobTools v1.1

A modular command-line solution for visualisation, quality control and taxonomic partitioning of genome datasets

Obtaining BlobTools

  • Option A: Download latest release
  • Option B: Clone repository
    git clone https://github.com/DRL/blobtools.git
    

Entering directory

cd blobtools

Install dependencies

  • Option A: Create Conda environment

    conda create -n blobtools
    conda activate blobtools
    conda install -c anaconda matplotlib docopt tqdm wget pyyaml git
    conda install -c bioconda pysam --update-deps
    

    Tip: Check if samtools exists by executing the command 'samtools' in the commandline. If samtools complains about dependencies, simply run the pysam install twice.

  • Option B: Install dependencies via PIP

    python setup.py install --user
    

Download NCBI taxdump and create nodesdb

wget ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdump.tar.gz -P data/
tar zxf data/taxdump.tar.gz -C data/ nodes.dmp names.dmp
./blobtools nodesdb --nodes data/nodes.dmp --names data/names.dmp

Create blobplot

./blobtools create -i example/assembly.fna -b example/mapping_1.sorted.bam -t example/blast.out -o example/test && \
./blobtools view -i example/test.blobDB.json && \
./blobtools plot -i example/test.blobDB.json

Usage

    ./blobtools --help

Docker

A docker container can be build using the following command:

     docker build -t drl/blobtools .

This docker image can be run with sample data as follows:

     docker run -v $PWD/example:/example/  -t  drl/blobtools ./blobtools create -i /example/assembly.fna -b /example/mapping_1.sorted.bam -t /example/blast.out -o /example/test

blobtools's People

Contributors

cschu avatar douglasgscofield avatar drl avatar gdko avatar hyphaltip avatar nickp60 avatar rjchallis avatar sujaikumar avatar tbooth avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

pythseq

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.