Defuse Fusion Discovery With Gzipped Fastq Input
2
0
Entering edit mode
10.4 years ago
ndejay ▴ 30

Hi,

I am running out of space on my server and wish to have deFuse software running with gzipped fastq input files. Previously, I decompressed them, expanding them sometimes 4-fold. There is no way for me to erase other things on the server. I have tried to follow the manual and setting the data_converter_1 in the configuration file but to no avail. Is there a more elegant way of doing this than decompressing and then at the end of the deFuse run, delete the decompressed files?

If I only had single reads, I could have done something to the effect of:

zcat input.fastq.gz | perl defuse.pl -c config.txt -

but I have pair-ended reads.

Anyone got suggestions? Thanks in advance.

fastq • 3.1k views
ADD COMMENT
5
Entering edit mode
10.4 years ago

Untested, but in bash (and probably others), you can often use process substitution which avoids having to explicitly make FIFOs.

perl defuse.pl -c config.txt -1 <( zcat input1.fastq.gz ) -2 <( zcat input2.fastq.gz )
ADD COMMENT
0
Entering edit mode

Will both substituted processes run in parallel or serially?

ADD REPLY
1
Entering edit mode

They will run in parallel and will "stream" so that the entire file is not read into memory.

ADD REPLY
4
Entering edit mode
10.4 years ago

You can always create named pipes:

mkfifo file1
mkfifo file2
zcat input1.fastq.gz > file1 &
zcat input2.fastq.gz > file2 &
perl defuse.pl -c config.txt -1 file1 -2 file2 ...

In general, something like that will work. Remember to delete the FIFOs when you're finished.

ADD COMMENT

Login before adding your answer.

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