Tophat: Compressed Fastq File (Gz)
2
4
Entering edit mode
12.7 years ago

Hi,

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

Thanks,

N.

tophat • 11k views
ADD COMMENT
3
Entering edit mode
12.7 years ago

Yes. It will uncompress based on the filename extension.

ADD COMMENT
0
Entering edit mode

Thanks a lot !

ADD REPLY
0
Entering edit mode
12.7 years ago
Science_Robot ★ 1.1k

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 ...
ADD COMMENT
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
1
Entering edit mode

For a general solution, you can often do:

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

ADD REPLY

Login before adding your answer.

Traffic: 2189 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