# Fastq to BAM file

**URL:** <https://help.galaxyproject.org/t/fastq-to-bam-file/5919>\
**Category:** Uncategorized\
**Tags:** quality-control\
**Created:** [May 6, 2021, 9:46pm UTC](https://help.galaxyproject.org/t/fastq-to-bam-file/5919 "2021-05-06T21:46:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pauloalabarse](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/pauloalabarse/32/3620_2.png) [@pauloalabarse](https://help.galaxyproject.org/u/pauloalabarse)\
**Post date:** [May 6, 2021, 9:46pm UTC](https://help.galaxyproject.org/t/fastq-to-bam-file/5919/1 "2021-05-06T21:46:36Z")

</div>

Hi, I have been trying to follow the galaxyproject tutorial about sambam-datasets, however, when I try to map bwa-mem my fastq file, it does never run. It return with the error message that it could not align. What step shall I take? What would I be doing wrong?

Here the exactly message: file does not contain alignment data

By the way, here it is the tutorial that I have been following exactly. [Manipulating NGS data with Galaxy - Galaxy Community Hub](https://galaxyproject.org/tutorials/ngs/#sambam-datasets).

---

<div class="post-metadata">

**Author:** ![Flow](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/flow/32/211_2.png) [@Flow](https://help.galaxyproject.org/u/Flow)\
**Post date:** [May 7, 2021, 1:04pm UTC](https://help.galaxyproject.org/t/fastq-to-bam-file/5919/2 "2021-05-07T13:04:00Z")

</div>

Dear pauloalabarse,  
Please make sure you selected the correct reference (either from Galaxy or from your local history) and also check if you fastq files are correctly formatted.

Here is another tutorial that might help you: [Mapping](https://galaxyproject.github.io/training-material/topics/sequence-analysis/tutorials/mapping/tutorial.html)

Cheers,  
Florian

---

<div class="post-metadata">

**Author:** ![pauloalabarse](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/pauloalabarse/32/3620_2.png) [@pauloalabarse](https://help.galaxyproject.org/u/pauloalabarse)\
**Post date:** [May 7, 2021, 7:18pm UTC](https://help.galaxyproject.org/t/fastq-to-bam-file/5919/3 "2021-05-07T19:18:39Z")

</div>

Dear Florian,

Thank you for your response. I tried to use FastQ Groomer before starting the Map step, and it worked. Thank you again.

Paulo.

---

<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 21, 2023, 11:17pm UTC](https://help.galaxyproject.org/t/fastq-to-bam-file/5919/4 "2023-12-21T23:17:19Z")

</div>

Closed on December 21, 2023, 11:17pm UTC


