#bam #pileup #reference #multiple #up #site #bed

app mpileup

Pile up multiple bam files site by site

21 releases

0.0.28 Sep 12, 2022
0.0.27 Sep 12, 2022
0.0.6 Mar 28, 2022
0.0.2 Sep 20, 2021
0.0.1 Jun 23, 2021

#196 in Biology

Download history 23/week @ 2024-09-20 1/week @ 2024-09-27

62 downloads per month

LGPL-3.0+

510KB
634 lines

Crates.io Crates.io docs.rs

mpileup

Install

cargo install mpileup

Usage

pileup number of base and indel

mpileup base --target test/region.bed --reference test/reference.fa --input test/sample1.bam test/sample2.bam -g -d 10

In this subcommand (example),

  • pileup up reads within region in region.bed
  • use reference.fa as reference
  • accept multiple input bam files: sample1.bam, sample2.bam ...
  • report indel with argument -g
  • set depth cutoff as 10 by -d 10

count number of reads

mpileup count --target test/region.bed --reference test/reference.fa --input test/sample1.bam

In this subcommand (example),

  • only support one file a time

Documentation

Read more

TODO

  • support sam flag filtering
  • support trimming read ends
  • remove duplicate by UMI on qname
  • group the result by customized tag (such as cell barcode)

Dependencies

~20–30MB
~470K SLoC