# fpa Filter Pairwise Alignment
[![Build Status](https://travis-ci.org/natir/fpa.svg?branch=master)](https://travis-ci.org/natir/fpa)
Filter output of all-against-all read mapping, you filter or select:
- internal match
- containment
- dovetails
- self matching
- read name match against regex
- length of overlap
- length of read in overlap
For internal match, containment, dovetails definition go read [algorithm 5 in minimap article](https://academic.oup.com/bioinformatics/article/32/14/2103/1742895/Minimap-and-miniasm-fast-mapping-and-de-novo)
## Rationale
Long Read mapping tools provides all match they found in read dataset, for many usage some of match aren't usfull, this programme provide some filter to remove it.
This soft can be replace by a simple script in awk, bash, python, ~perl~, {your favorite language}.
More details and some experiment are present in this [blog post](https://blog.pierre.marijon.fr/binary-mapping-format/). We have evaluated the effects of some fpa filter on miniasm assemblies, you can find scripts and how to get the real data sets in [this repository](https://gitlab.inria.fr/pmarijon/yacrd-and-fpa-upstream-tools-for-lr-genome-assembly).
## Usage
```
fpa -i -o