Does The Fastx_Toolkit Work On Gzip Compressed Files?
2
1
Entering edit mode
8.7 years ago
roll ▴ 330

Does fastx_toolkit accept *fastq.gz file as input file? Or does it have to be fastq/a file?

I get the following error message when i try

fastx_clipper -Q33 -z -a GATC -i my.fastq.gz -o my_adapRem.fastq

fastx_clipper: input file (my.fastq.gz) has unknown file format (not FASTA or FASTQ), first character = (31)

is this because of zipped input data or am i missing something else?

fastx fastq • 10.0k views
ADD COMMENT
5
Entering edit mode
8.7 years ago
seidel 9.5k

jake9115 may have answered your question literally (no fastx-toolkit doesn't read .gz), but you should know that they DO take STDIN. Thus, since you're on a command line (or in a script), make a pipe:

gunzip -c my.fastq.gz | fastx_clipper -Q33 -z -a GATC -o my_adapRem.fastq
ADD COMMENT
0
Entering edit mode

Thanks, this is great.

ADD REPLY
1
Entering edit mode
8.7 years ago
JacobS ▴ 960

FASTX-Toolkit only can output files in compressed format, not use them as input. According to the documentation:

Some tools can compress the output with GZIP (-z).

Only in one reported case can the input be gzipped:

fasta_clipping_histogram.pl help page includes this: INPUT_FILE.FA = input file (in FASTA format, can be GZIPped)

Hope that helps!

ADD COMMENT
0
Entering edit mode

Thank you, this is very clear

ADD REPLY

Login before adding your answer.

Traffic: 1356 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6