Giter VIP home page Giter VIP logo

bamtocov's Introduction

bamtocov

Build Bamtocov Downloads Platforms Paper

bamtocov logo

Tools to extract coverage informations from BAM (and CRAM) files, based on the covtobed algorithm that supports stranded coverage and physical coverage, input from streams and uses a memory-efficient algorithm.

๐Ÿ“– Documentation

Full documentation is available online at the ๐Ÿ“– dedicated website, or in this repository under docs.

Installation

The BamToCov package is available from ๐Ÿ“ฆ BioConda

conda install -y -c bioconda bamtocov

Benchmarks

Bamtocov has the smallest memory footprint of any other coverage tool, while maintaining reasonable speeds

See also

Initially we also used Lapper, and I recommend checking out this library for fast interval operations.

Cite

Giovanni Birolo, Andrea Telatin, BamToCov: an efficient toolkit for sequence coverage calculations, Bioinformatics, 2022

bamtocov's People

Contributors

telatin avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

bamtocov's Issues

"invalid integer: everything" when trying to run BamToCov

Hi guys I'm trying to use your tool but every option I try to put return this error. invalid integer: "everything"
I'm using the latest versione 2.7 isntalled with Conda.

First I tried with: bamtocov -w -o -T 24 sorted.bam > coverage.wig
and the error was invalid integer: -o
then I removed -o and I have the error invalid integer: -T
then I tried to write --threads instead of -T and invalid integer: --threads
then I left only the -w and the error was invalid integer: sorted.bam

So after some bestemmie I left only the basic command bamtocov sorted.bam > coverage.bed and it works.
Is it a common issue for you?

Missing information of strand function

Hi!
I'm trying you strand coverage calculator, using the command:
bamtocov -s alignment.rg.clipped.recalibrated.bam > stranded_cov.txt
But I couldn't found any indication about the strand output, is the first column the forward and the second column the reverse?
Thanks

[BUG] run time exceeds > 6 hours human exome

Describe the bug
Dear bamtocov team,

I have human WES data and am trying to run bamtocov. After 6 hours, not even half is done/calculated, even when using 24 threads. Maybe I am missing something?

To Reproduce
bamtocov EF_V1_S9.MD.sorted.bam --regions Targets_hg38.bed --threads 24 --mapq 20 > EF_V1.cov

Expected behavior
From the paper I gather it should run a lot faster than 6 hours.

System information (please complete the following information):

  • OS: Linux
  • Browser [e.g. chrome, safari]
  • Version: 2.7.0

A way to calculate coverage breadth

It is often useful to see if reads horizontally cover a certain percentage of a locus' length. Existing tools (bedtools coverage) are too slow/memory-consuming with unsorted BAMs.

How did bamtocov deal with paired-end bam from stranded libraries?

@telatin Dear Dr. Telatin,

I'm curious about how bamtocov deal with paired-end bam from stranded libraries by setting with --stranded.

Will bamtocov automatically treat mated reads as reverse strand? For example, if mate1 of a fragment was recorded as '-' strand in bam, which means that mate1 are actually comes from '+' strand. When setting with --stranded, mate1 will be counted as '+' strand. My question is, will mate2 of this fragment be automatically counted as '+' strand as well in this case?

Also, will the new '--extendReads INT' parameter also work well with paired-end bam?

Best,

Keren

`bamtocov` generated "ERROR: coverage went backwards from 0 to 0"

Describe the issue
bamtocov file.bam generated "ERROR: coverage went backwards from 0 to 0"

System information (please complete the following information):

  • UBUNTU 20.04 app

Additional context
I do not know what the error means. I generated bam file using minimap2 in Galaxy and I successfully visualized the bam file in IGV.

Thank you in advance.

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.