This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Tophat: Compressed Fastq File (Gz)

Hi,

Is it possible to use Tophat with .gz fastq file ?

Thanks,

N.

tophat

2 answers

Yes. It will uncompress based on the filename extension.

If you ever have a program that doesn't accept gzipped input or you're not sure whether or not it accepts gzipped input, you can make it using UNIX pipes:

gzcat the_file.gz | program -in /dev/stdin ...

That works if there is only one input. If there are multiple, one must resort to fifos.

What about gzcat the_files*.gz | program -in /dev/stdin ???

That is multiple input files but still one input. Tophat takes two inputs for paired-end sequencing data.

For a general solution, you can often do:

program -in1 <( gzcat inputfile1.gz ) -in2 <( gzcat inputfile2.gz )

Log in to answer this question.