# Want to retain reads with mapping quality 0

**URL:** <https://help.galaxyproject.org/t/want-to-retain-reads-with-mapping-quality-0/2704>\
**Category:** usegalaxy.org support\
**Tags:** variant-analysis\
**Created:** [December 20, 2019, 6:34pm UTC](https://help.galaxyproject.org/t/want-to-retain-reads-with-mapping-quality-0/2704 "2019-12-20T18:34:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AryaStark](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/aryastark/32/1178_2.png) [@AryaStark](https://help.galaxyproject.org/u/AryaStark)\
**Post date:** [December 20, 2019, 6:34pm UTC](https://help.galaxyproject.org/t/want-to-retain-reads-with-mapping-quality-0/2704/1 "2019-12-20T18:34:30Z")

</div>

Hi, im a newbie here. I want to know how to retain reads with zero mapping quality to be carried into the next step… Im using Map with BWA-MEM followed by samtools mpileup and varscan. I want my final output to have all variants, including the ones with multiple hits, as I am studying pseudogenes.

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [December 26, 2019, 6:53pm UTC](https://help.galaxyproject.org/t/want-to-retain-reads-with-mapping-quality-0/2704/2 "2019-12-26T18:53:21Z")

</div>

Welcome, @AryaStark

Most variant calling protocols will discard multi-mapping reads.

Try these two tools instead and see if they produce the results you are looking for. How to use each is on the tool form.

1. Variant calling: **Naive Variant Caller (NVC)** - tabulate variable sites from BAM datasets (Galaxy Version 0.0.4)
2. Parse those results into a summary report: **Variant Annotator** process variant counts (Galaxy Version 1.2)

This much older tutorial includes both tools and will offer a bit more usage help, in the context of a different experiment. Technical gotcha… the tools included are older. Use the most current version of the tools instead and you’ll be able to skip some of the steps. _Example_: Read groups can be directly assigned on mapping tool forms now (if you use/need those) and do not require distinct steps to add them in.

- [https://usegalaxy.org/u/galaxyproject/h/galaxy-variant-101](https://usegalaxy.org/u/galaxyproject/h/galaxy-variant-101)

Current Galaxy Variant Analysis tutorials can be found here. None of these include the specialized variant calling tools above, but the remainder of the methods may be informative.

- [https://training.galaxyproject.org/training-material/](https://training.galaxyproject.org/training-material/)

Thanks!
