Giter Site home page Giter Site logo

anazhmetdin / chimaera Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 0.0 371 KB

parsing SAM files to extract chimeric alignments and report each chimeric locus with its supporting reads

Shell 20.92% C++ 79.08%
sam sam-files chimeric-alignment sam-bam sam-parser

chimaera's Introduction

Chimeara

description

This is a chimeric alignment reporter. Chimeric alligments correspond to some structural variation in the sequenced sample in comparison to the reference genome.

The main element in this tool is the locus. A locus is defined by three properties:

  • Chromosome
  • Position
  • Direction (0 for forward direction, 1 for reverse direction)

Therefor, this tool reports all reads that covers two distinct loci such as following:

Dependencies:

  • Samtools
  • gperf
  • g++

Input

  • SAM file of the mapped sample
    • You will be prompted to either use the same hash function or to create a new one. You are supposed to create new hash function for different samples
    • Then, you will be prompted to enter the maximum allowed gap between reads to be considered on the same locus
    • Finally, you will be prompted to enter the the minimum number of supporting reads for each locus to be reported

Output

  • One text file named supported_loci.txt in the pipline_run directory following this template for each loci:

@$num_supporting_reads $pos_1st_locus-$end_pos_1st_locus $pos_2nd_locus-$end_pos_2nd_locus

>>$1st_reference_name $1st_locus_direction

>>$2nd_reference_name $2nd_locus_direction

$read_line_supporting_1st_locus

$read_line_supporting_2nd_locus

$read_line_supporting_1st_locus

$read_line_supporting_2nd_locus

$read_line_supporting_1st_locus

$read_line_supporting_2nd_locus

To run this pipeline use this line on a Linux terminal:

./pipeline_supported_chim_loci.sh $SAM_file_name.sam

chimaera's People

Contributors

anazhmetdin avatar

Stargazers

 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.