Giter Site home page Giter Site logo

bamtobw's Introduction

bamTobw

Convert BAM files to bigWig files with a simple command

Advantage

Usage

bamTobw.sh -- convert stranded sequencing BAM file to bigWig file
Usage: bamTobw.sh -b <bamlist> [-s] [-d] [-l <readlength>]
-b <bamlist> -- file contains bam files (one file per line)
-s -- if set, related files will be scaled to HPB
-d -- if set, bam file will be divide into strand plus and strand minus
-l <readlength> -- you could assign it instead of reading from bam file

Note: -d is only suitable for single reads, not for paired-end reads.

Requirements

Note

For stranded sequencing, the default sequencing protocl is dUTP methods. More discussions please refer to issue #1.

This tool is suitable for different sequencing types and trimmed reads. See issue #2.

License

Copyright (C) 2014 YangLab. See the LICENSE file for license rights and limitations (MIT).

bamtobw's People

Contributors

kepbod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bamtobw's Issues

Plus and minus strands inverted

Hi there,

Thank you for making a great script available. I have been using it on a recent batch of sequencing data but have noticed that the plus and minus stranded bigwigs are the opposite to what we were expecting.

After checking through the script, it looks as though the F and f flags are the wrong way around at lines 20 and 22 in the bam_divide function, what do you think? I.E for forward strands, samtools command should be 'samtools view -F 20' and for reverse, 'samtools view -f 16'

How to deal with trimmed reads?

Hello Xiao-Ou,
You write a useful tool to convert bam to bw format.
I have two questions:
1. How to deal with trimmed reads (the length of each sequence is not equal)?
2. Is this tool suitable for both SE and PE sequencing data sets?

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.