Giter Club home page Giter Club logo

cbc's Introduction

#########################################

  Compressor for aligned reads 
   (described in a SAM file)              

#########################################

	Contact               

Please contact the authors for any bug/comment:

Idoia Ochoa: [email protected] Mikel Hernaez: [email protected]

######################################### Purpose

This is a program for compression and decompression of aligned reads presented in a SAM file. Note that the purpose of this algorithm is to compress the necessary information to reconstruct the reads contained in the SAM file, i.e., we do not compress the identifiers and the quality values. The decoder produces a file with only the reconstructed reads (i.e., we do not reconstruct the SAM file).

Assumptions made by the program:

  1. The SAM file is ordered by position. If the sam file is not ordered, please convert it first to a bam file, order it, and then convert back to sam file (one can do this with SamTools, for example).
  2. The SAM file contains ONLY mapped reads, i.e., those reads that did not map should not be included in the SAM file. Recall that the purpose of the proposed method is to compress the aligned reads only.
  3. The SAM file contains the AUX field MD.

######################################### Usage

  1. Compress the reads contained in the SAM file
  2. Reconstruct the reads using the output of the compressor and the reference used for the alignment (to generate the SAM file)

######################################### Download

  1. Download the software from github. (https://github.com/mikelhernaez/cbc)
  2. Unzip it.

######################################### Installation

Go to the main folder and run the following command:

$ make

This will create a folder named "bin" where you will find the binary to run the program.

######################################### Usage

For an example on how to run the program and generate the necessary files, please see example below.

  1. Compress the reads contained in the SAM file:

$ PATH_TO_BINARY/cbc -c

The is a SAM file ordered by position, that contains only the aligned reads, i.e., those reads that failed to align to the reference should not be included in the SAM file. We further assume the AUX field MD is present. The is the name of the compressed file will have. The is the FASTA file used as reference for the creation of the SAM file.

  1. Decompress the reads:

$ PATH_TO_BINARY/cbc -d

The is the file where the program is going to write the reconstructed reads. The is the file already compressed by cbc. The is the FASTA file used as reference for the creation of the SAM file.

######################################### Thanks for using our program!!
#########################################

cbc's People

Contributors

mikelhernaez avatar reginaldlong avatar

Watchers

James Cloos avatar Shivank Mishra 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.