# Minimap2 fails immediately on mapping fasta to hg38

**URL:** <https://help.galaxyproject.org/t/minimap2-fails-immediately-on-mapping-fasta-to-hg38/10041>\
**Category:** Uncategorized\
**Tags:** troubleshooting, fastqsanger, single-cell\
**Created:** [May 10, 2023, 10:33pm UTC](https://help.galaxyproject.org/t/minimap2-fails-immediately-on-mapping-fasta-to-hg38/10041 "2023-05-10T22:33:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nblewett](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@nblewett](https://help.galaxyproject.org/u/nblewett)\
**Post date:** [May 10, 2023, 10:33pm UTC](https://help.galaxyproject.org/t/minimap2-fails-immediately-on-mapping-fasta-to-hg38/10041/1 "2023-05-10T22:33:02Z")

</div>

Minimap2 should be able to map from fastq or fasta files. Galaxy Minimap2 cannot see fastq files. When galaxy minimap2 is run on fasta files it fails where it previously ran effectively. This same data was processed through galaxy a few weeks ago, something is different.

---

<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:** [May 12, 2023, 8:50pm UTC](https://help.galaxyproject.org/t/minimap2-fails-immediately-on-mapping-fasta-to-hg38/10041/2 "2023-05-12T20:50:45Z")

</div>

Hi @nblewett

> [@nblewett](#):
>
> Galaxy Minimap2 cannot see fastq files.

You might just need to change the datatype [Changing the datatype](https://training.galaxyproject.org/training-material/faqs/galaxy/datasets_change_datatype.html). Next time you Upload data, allow Galaxy to “auto-detect” the datatype.

If the “auto-detect” guess is wrong _and_ you are working with reads, there is very likely some problem with that data (format, content, compression that Galaxy cannot uncompress,…). For the compression issues, try uncompressing _locally_ first. If that works, upload the uncompressed data to Galaxy. If that fails, some problem was introduced upstream and the data is corrupted and not usable anywhere, not just Galaxy. Maybe an upstream data transfer failed?

Once you have Uploaded intact data, run some QA before attempting to map.

More about how to learn what datatypes a tool is looking for, plus other general fastq help is in the topic below. The datatype restrictions are a very basic quality/format sanity check – not to be confused full QA. A tool can fail for odd reasons when given data in a format that it wasn’t designed to work with, or produce putatively successful results that have scientific problems. The latter isn’t always easy to detect.

> [@fastq unavailable -- Tool does not recognize inputs? How to check why](https://help.galaxyproject.org/t/fastq-unavailable-tool-does-not-recognize-inputs-how-to-check-why/8925/2):
>
> Hi @TTP Most tools in Galaxy expect reads in fastqsanger or fastqsanger.gz format and with one of those datatypes assigned. Those datatypes represent a specific type of quality score scaling: Sanger Phred +33. This is produced by Illumina 1.8+ pipelines. PacBio used Phred+33 scaling to start with and now the scaling is neutral. You can double check with a tool like FastQC or FASTQ info to see what those report. There are some tools that expect just fastq or fastq.gz (scaling unspecified). But…

Tutorials

- [https://training.galaxyproject.org/training-material/search?query=minimap](https://training.galaxyproject.org/training-material/search?query=minimap)
- [https://training.galaxyproject.org/training-material/search?query=quality](https://training.galaxyproject.org/training-material/search?query=quality)

If you need more help, please share more details. This is the information people at this forum will usually need. Be sure to capture the server URL. [Troubleshooting errors](https://training.galaxyproject.org/training-material/faqs/galaxy/analysis_troubleshooting.html)

---

<div class="post-metadata">

**Author:** ![nblewett](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@nblewett](https://help.galaxyproject.org/u/nblewett)\
**Post date:** [May 15, 2023, 8:49pm UTC](https://help.galaxyproject.org/t/minimap2-fails-immediately-on-mapping-fasta-to-hg38/10041/3 "2023-05-15T20:49:50Z")

</div>

That’s a very detailed and helpful reply, I appreciate the insight.

---

<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 20, 2023, 8:14pm UTC](https://help.galaxyproject.org/t/minimap2-fails-immediately-on-mapping-fasta-to-hg38/10041/4 "2023-12-20T20:14:27Z")

</div>


