.. highlight:: shell .. _bam-filter: Filtering Bam files with ``bam-filter`` ======================================= This executable is useful to filter :ref:`aligned-PacBio-bam-file`'s according to the values of some columns. It offers the following options: .. program:: bam-filter .. option:: Input file in BAM format. The output will be another BAM-FILE with the same name but prefixed with 'parsed.'. For example: .. code-block:: console $ bam-filter mydata.bam ... will produce, as output a file named ``parsed.mydata.bam``. .. option:: -l , --min-dna-seq-length Minimum length of DNA sequence to be kept (default: 0, ie. do not filter). .. option:: -r , --min-subreads-per-molecule Minimum number of subreads per molecule to keep it (default: 1). .. option:: -q , --quality-threshold Quality threshold of the sample. Between 0 (the lowest) and 255 (the highest) (default: 0). .. option:: -m [ ...], --mappings [ ...] Keep only the requested (space separated) list of mappings (default: keep all). .. option:: -R , --min-relative-mapping-ratio Minimum ratio (wanted mappings/all mappings) to keep the subread (by default all the subreads are taken).