# HISAT2 error failed to read header from "-"

**URL:** <https://help.galaxyproject.org/t/hisat2-error-failed-to-read-header-from/10381>\
**Category:** usegalaxy.org support\
**Tags:** mapping, fastqsanger\
**Created:** [July 1, 2023, 11:09pm UTC](https://help.galaxyproject.org/t/hisat2-error-failed-to-read-header-from/10381 "2023-07-01T23:09:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas\_Romero\_Villa](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/nicolas_romero_villa/32/4288_2.png) [@Nicolas\_Romero\_Villa](https://help.galaxyproject.org/u/Nicolas_Romero_Villa)\
**Post date:** [July 1, 2023, 11:09pm UTC](https://help.galaxyproject.org/t/hisat2-error-failed-to-read-header-from/10381/1 "2023-07-01T23:09:39Z")

</div>

Hello today i was using HiSAT2 to fo a mapping of my fastq paired-end secuences to the reference genome of my organism (Hydractinia symbiolongicarpus) and the software returned this error:

Total time for call to driver() for forward index: 00:07:18  
(ERR): mkfifo(/tmp/39861.inpipe1) failed.  
Exiting now …  
samtools sort: failed to read header from “-”  
[main\_samview] fail to read the header from “-”.

I dont know exactly what it means. This is the link to the history im working on:

> **[Galaxy](https://usegalaxy.org/published/history?id=e6a0775e581ce894)**
>
> Galaxy is a community-driven web-based analysis platform for life science research.

---

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://help.galaxyproject.org/u/igor)\
**Post date:** [July 2, 2023, 11:20am UTC](https://help.galaxyproject.org/t/hisat2-error-failed-to-read-header-from/10381/2 "2023-07-02T11:20:03Z")

</div>

Hi @Nicolas_Romero_Villa  
I successfully tested HiSAT2 with a custom genome. I don’t know why your jobs have failed. I converted your genome and reads into plain text formats, fasta and fastqsanger, and completed a test job with 1k PE reads. It is possible that the reads were compressed in non-standard option, and HiSAT2 cannot unpack the data. However, I tested only 1k reads, so there might be an issue with the data. It is very unusual situation.  
Just in case, procedure for conversion of formats: click at Edit Attributes (pencil icon) \> in the middle window switch to Convert tab and select an appropriate option from the pull-down menu.  
Kind regards,  
Igor

---

<div class="post-metadata">

**Author:** ![ks-bris](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/ks-bris/32/4475_2.png) [@ks-bris](https://help.galaxyproject.org/u/ks-bris)\
**Post date:** [July 4, 2023, 1:43pm UTC](https://help.galaxyproject.org/t/hisat2-error-failed-to-read-header-from/10381/3 "2023-07-04T13:43:48Z")

</div>

Hi @igor @Nicolas_Romero_Villa  
I ma having the same problem but with the human hg38 genome. The same data works fine on [galaxy.eu](http://galaxy.eu) so I assume it’s a problem with this server. I have reported it as a bug.

---

<div class="post-metadata">

**Author:** ![Nicolas\_Romero\_Villa](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/nicolas_romero_villa/32/4288_2.png) [@Nicolas\_Romero\_Villa](https://help.galaxyproject.org/u/Nicolas_Romero_Villa)\
**Post date:** [July 4, 2023, 1:57pm UTC](https://help.galaxyproject.org/t/hisat2-error-failed-to-read-header-from/10381/4 "2023-07-04T13:57:43Z")

</div>

Hi @igor i converted the data as you suggest and i got the BAM file from HISAT2 the only cuestion that i have now its if the free space that Galaxy gives its enough to all my work flow  
Thank you very much

---

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://help.galaxyproject.org/u/igor)\
**Post date:** [July 4, 2023, 11:36pm UTC](https://help.galaxyproject.org/t/hisat2-error-failed-to-read-header-from/10381/5 "2023-07-04T23:36:28Z")

</div>

Ho @Nicolas_Romero_Villa  
I am glad it works for you. Looks like a compression issue. It is very unusual. You can try one sample in Europe, because of information shared by @ks-bris. Files can be copied to another Galaxy server directly, using link (chain icon). Paste the links into Galaxy Upload menu, Past/Fech data tab.  
Map reads in batches and delete uncompressed files after completion of mapping jobs. BAM files contain both mapped and unmapped reads. You’ve done QC of raw data (FastQC), so you probably don’t need reads anymore in Galaxy.  
I am not admin on ORG, and I don’t know the current quota policy. On Galaxy Australia we recommend analysis in batches.  
Kind regards,  
Igor

---

<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, 8:06pm UTC](https://help.galaxyproject.org/t/hisat2-error-failed-to-read-header-from/10381/6 "2023-12-21T20:06:45Z")

</div>


