[Rust learning project]
Remove alignments with high number of clipped base.
Sometimes aligners have very loose scoring methods and write alignments with high abundant of soft/hard-clipped base into alignment BAM files. This program is for filtering these reads out by gating the number of clipped bases in relative to the read sequence length
``` $ git clone https://github.com/wckdouglas/filter-clipped $ cd filter-clipped $ cargo install --path . # if compilation error, try CC=/usr/bin/gcc cargo install --path . $ filter-clipped --help filter-clipped 0.1.0 Remove alignments with high number of clipped base. Sometimes aligner has very loose scoring methods and write alignments with high abundant of soft/hard-clipped base into alignment BAM files. This program is for filtering these reads out by gating the number of clipped bases in relative to the read sequence length
USAGE:
filter-clipped [OPTIONS] --in-bam
OPTIONS:
-b, --both-end
cargo test
docker pull ghcr.io/wckdouglas/filter-clipped:main
docker run --env RUST_LOG=info -v $PWD/:/root/ ghcr.io/wckdouglas/filter-clipped:main --in-bam /root/bamfile_in_current_path.bam | samtools view