--- title: bamfilter keywords: fastai sidebar: home_sidebar nb_path: "10_utils_bamfilter.ipynb" ---
{% raw %}
{% endraw %} {% raw %}
{% endraw %} {% raw %}

filter_bam_by_name[source]

filter_bam_by_name(read_name_list, bamfile, output, included=True)

Filter the bam by read name

:param str read_name_list: read name list, could be names include or exclude :param str bamfile: bam :param str output: output bam file :param bool included: whether the read names in the read name list should be included in the output bamfile or excluded in the output bamfile

{% endraw %} {% raw %}
{% endraw %}