Question: how to unpack sra file?
0
3
gravatar for benformatics
10 months ago by
benformatics2.0k
ETH Zurich
benformatics2.0k wrote:

Use fastq-dump

-

Usage Examples(stolen from link):

fastq-dump -X 5 -Z SRR390728

Prints the first five spots (-X 5) to standard out (-Z). This is a useful starting point for verifying other formatting options before dumping a whole file.

fastq-dump -I --split-files SRR390728

Produces two fastq files(--split-files) containing ".1" and ".2" read suffices (-I) for paired-end data.

ADD COMMENTlink modified 10 months ago • written 10 months ago by benformatics2.0k
1

Also if you want to download the fastqs directly - next time try the following: Fast download of FASTQ files from the European Nucleotide Archive (ENA)

ADD REPLYlink modified 10 months ago • written 10 months ago by benformatics2.0k
1

You might want to check fasterq-dump, which is advertised as "a faster fastq-dump".

Personally, I don't think the disk space you save by using the SRA instead of FASTQ is worth the trouble of going through the painful prefetch, fastq-dump, I always check ENA first for the fastq files.

ADD REPLYlink modified 10 months ago • written 10 months ago by Haci370

I personally use Aspera to pull the fastqs off the ENA - it's way faster than my answer above but I'm not sure the speed difference vs. fasterq-dump

ADD REPLYlink written 10 months ago by benformatics2.0k

fasterq-dump is based on my limited testing slower than parallel-fastq-dump given the same number of threads but an improvement towards fastq-dump. It does not offer gzip-compression, so it is nonsense for large datasets such as WGS imho. I would always start from sra though since all *_dump tools are too unstable to directly load fastq from NCBI. Still, pulling from ENA via Aspera is the fastest. One should be aware of the alternatives though since ENA will never mirrow restricted data such as dbGaP datasets.

ADD REPLYlink written 10 months ago by ATpoint44k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2371 users visited in the last hour
_