Giter Site home page Giter Site logo

two-way-blast's Introduction

two-way-blast license dockerhub compihub

two-way-blast is a compi pipeline to finding orthologs using a two-way BLAST approach. A Docker image is available for this pipeline in this Docker Hub repository.

two-way-blast repositories

Using the two-way-blast pipeline in Linux

In order to use the two-way-blast pipeline, you should run and adapt the following command:

docker run --rm -v /path/to/input/data/dir:/input -v /path/to/output/data/dir:/output pegi3s/two-way-blast -q -- --reference_file <reference_nucleotide> --blast_type <blast_type>

In these command, you should replace:

  • /path/to/input/data/dir to the actual path that contains your input FASTA files.
  • /path/to/output/data/dir to the actual path where the output files will be created.
  • <reference_nucleotide> to the actual name of your reference nucleotide file.
  • <blast_type> to the name of the type of BLAST you want to use (either blastn or tblastx).

By default, this command launches the compi pipeline with the default number of parallel tasks (6). In order to launch the pipeline with more parallel tasks, add the --num-tasks <num_tasks> parameter right before the --.

Also note that the -q parameter disables Compi progress logs into the console. Remove it in case you want to see them. In addition, you can also use -o parameter to see log messages of the underlying operations (i.e. BLAST commands).

Test data

The sample data is available here. Download, uncompress it and move to the test-data-two-way-blast directory, where you will find:

  • A directory called data, that contains the sample FASTA files.
  • A file called run.sh, that contains the following commands (where you should adapt the paths) to test the pipeline:
INPUT_DIR=/path/to/test-data-two-way-blast/data/
OUTPUT_DIR=/path/to/output/data/dir
REFERENCE=nucleotide.fasta
BLAST_TYPE=tblastx
COMPI_NUM_TASKS=8

docker run --rm -v ${INPUT_DIR}:/input -v ${OUTPUT_DIR}:/output pegi3s/two-way-blast --num-tasks ${COMPI_NUM_TASKS} -q -- --reference_file ${REFERENCE} --blast_type ${BLAST_TYPE}

Building the Docker image

To build the Docker image, compi-dk is required. Once you have it installed, simply run compi-dk build from the project directory to build the Docker image. The image will be created with the name specified in the compi.project file (i.e. pegi3s/two-way-blast:latest). This file also specifies the version of compi that goes into the Docker image.

two-way-blast's People

Contributors

hlfernandez avatar

Stargazers

 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.