Code Monkey home page Code Monkey logo

bamcoverage's Introduction

BamCoverage

BamCoverage: A efficient software tools to Calculate site depth of genome based bam/sam List




The newest version of this funtion was integrated into toolkit BamDeal ,please replace BamCoverage by this BamDeal.

           ./BamDeal statistics  Coverage



  1. Install

Please replace BamCoverage with this toolkit BamDeal.




  1. Install

 This software rely htslib,so should Pre-install htslib first samtools-1.5/htslib-1.5
Then Just [make] or [sh make.sh ] to compile this software.
the final software can be found in the Dir [bin/BamCoverage]

For linux /Unix and macOS

        tar -zxvf  BamCoverage-XXX.tar.gz
        cd BamCoverage-XXX;                             # if Link do not work ,Try re-install  two  library
        cd src;                                         #【zlib and htslib】 and copy them to the library Dir
        make ; make clean                               # BamCoverage-XX/src/include/zlib 
        ../bin/BamCoverage                              

  1. Example

    1. Calculate bam files
#To Calculate bam

    ./bin/BamCoverage  -List  bam.list  -OutPut  out.depth.fa.gz -MinQ -1
   # To out Put the each chr meanDepth Coverage add [-Stat]
    ./bin/BamCoverage  -List  bam.list  -OutPut  out.depth.fa.gz  -Stat

    1. Calculate sam files
# To cCalculate sam
	./bin/BamCoverage  -List  sam.list  -OutPut  out.depth.fa.gz  -Stat
# Also you the  add the  -MinQ to filter some reads
	./bin/BamCoverage  -List  sam.list  -OutPut  out.depth.fa.gz  -MinQ 10
    1. Calculate GC-Depth Dis Figure
# First Out Put the Depth-GC wig info with [-Ref  Ref.fa]
	./bin/BamCoverage  -List bam.list   -OutPut outFix   -Ref Ref.fa  -Stat
# Second To Plot the Figure 
# Must PreInstall R with library ggplot2,gridExtra,ggExtra
	perl  bin/GC_Depth_Plot.pl  outFix.DepthGC.wig.gz  MaxDepth  OutFig
  1. Introduction

  • Parameter description
  ./BamDeal   statistics  Coverage

        Usage: Coverage  -List  <bam.list>  -OutPut  <outFix>

                -InList    <str>     Input Bam/Sam File List
                -InFile    <str>     Input Bam/Sam File File[repeat]
                -OutPut    <str>     OutPut File prefix

                -Ref       <str>     In Ref.fa If Want Out Depth-GC wig info
                -Windows   <int>     Windows size for Depth-GC wig[10000]
                -Bed       <str>     Stat Coverage,MeanDepth for these bed Regions
                -Stat                Stat Coverage,MeanDepth & Depth Dis of whole-genome

                -MinQ      <int>     Filter the read low mapQ[10]

                -help                Show this help [hewm2008 v1.30]
  1. Results

Format Introduction

5)Discussing

######################swimming in the sky and flying in the sea ########################### ##

bamcoverage's People

Contributors

hewm2008 avatar

Watchers

 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.