# downloaded fastq.gz file does not open/extract in Windows

**URL:** <https://help.galaxyproject.org/t/downloaded-fastq-gz-file-does-not-open-extract-in-windows/3137>\
**Category:** usegalaxy.org support\
**Tags:** fastqgz, fastqsanger\
**Created:** [March 6, 2020, 10:29am UTC](https://help.galaxyproject.org/t/downloaded-fastq-gz-file-does-not-open-extract-in-windows/3137 "2020-03-06T10:29:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janine\_Lux](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/janine_lux/32/1308_2.png) [@Janine\_Lux](https://help.galaxyproject.org/u/Janine_Lux)\
**Post date:** [March 6, 2020, 10:29am UTC](https://help.galaxyproject.org/t/downloaded-fastq-gz-file-does-not-open-extract-in-windows/3137/1 "2020-03-06T10:29:18Z")

</div>

Hello,  
I oploaded a pooled CRISPR/Cas9 screen data (fastq.gz) to galaxy and used the barcode splitter to demultiplex the data. This created separate fastqsanger files. As I need the files in fastq or fastq.gz format, I tried converting the format by editing the attributes and changing the datatype format. I am not sure if this was the proper way to convert fastqsanger to fastq.gz or fastq. When I download the converted files, the fastq.gz files seem strange, as I can not open the archive/ extract them. There are error messages saying that it is not an archive file.  
I would be grateful for advice on how to concert fastqsanger to fastq or fastq.gz files and on what could be wrong.  
Many thanks, Janine

---

<div class="post-metadata">

**Author:** ![wm75](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/wm75/32/56_2.png) [@wm75](https://help.galaxyproject.org/u/wm75)\
**Post date:** [March 6, 2020, 3:06pm UTC](https://help.galaxyproject.org/t/downloaded-fastq-gz-file-does-not-open-extract-in-windows/3137/2 "2020-03-06T15:06:08Z")

</div>

Hi Janine,

there are a couple of different issues here:

1. fastqsanger and fastq are the _same_ file format and, outside of Galaxy, there is no difference between them. (Inside Galaxy, changing the datatype from fastqsanger to fastq or vice versa will affect which tools can use the dataset.) For downloading you cannot do anything wrong with that.

2. As it says on the `Change datatype` tab:  
_This will change the datatype of the existing dataset but not modify its contents. Use this if Galaxy has incorrectly guessed the type of your dataset._  
So using this functionality to compress fastq/fastqsanger to fastq.gz is definitely wrong. It will just make Galaxy consider the data to be compressed, but that doesn’t _make_ it compressed.  
The correct way is via the neighbouring _Convert_ tab. That offers an option to decompress compressed fastq. The other way round is not offered though.

3. Is the Barcode splitter really producing fastq, when you feed it fastq.gz datasets? Haven’t tried this myself, but that would be close to a bug in the tool.

4. Which tool did you use to try and open the downloaded file on Windows? Windows does not support gzip format out of the box, or does it these days?

---

<div class="post-metadata">

**Author:** ![Janine\_Lux](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/janine_lux/32/1308_2.png) [@Janine\_Lux](https://help.galaxyproject.org/u/Janine_Lux)\
**Post date:** [March 10, 2020, 3:44pm UTC](https://help.galaxyproject.org/t/downloaded-fastq-gz-file-does-not-open-extract-in-windows/3137/3 "2020-03-10T15:44:14Z")

</div>

Thank you very much for your answer and clarifying some things for me. I reran the barcode splitter. My input file was a fastq.gz file, which was recognized by galagy as a fastqsanger.gz file. All the generated output files are fastqsanger format.

I tried opening the downloaded files on windows with with 7-zip file and winRar Archiver.

---

<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:** [March 11, 2020, 5:41pm UTC](https://help.galaxyproject.org/t/downloaded-fastq-gz-file-does-not-open-extract-in-windows/3137/4 "2020-03-11T17:41:08Z")

</div>

> [@Janine\_Lux](#):
>
> I tried opening the downloaded files on windows with with 7-zip file and winRar Archiver.

It sounds like you are using “compressed file” tools right now – those won’t work. The downloaded data is not compressed.

> [@Janine\_Lux](#):
>
> All the generated output files are fastqsanger format.

`.fastqsanger` is an _uncompressed_ plain text formatting. Any plain text editor should be able to read the files. Those may not recognize the format by default since the file extension doesn’t end with a `.txt`– however, that is what this data is (at the most basic level). You could make a copy of one of the files, add on the `.txt` extension, then test out which tools recognize it, to learn which you want to use/configure to read all of the others.

That said, fastq data is usually very large and reviewing it directly in a text editor is rarely needed. If the goal is to use line-command utilities/tools to work with the data (outside of Galaxy), use whatever options specify that the input is in `fastq` format for these data (not `fastq.gz`).
