Converting .sra files to fastq
2
0
Entering edit mode
10.5 years ago
Linda ▴ 150

I am trying to convert .sra files to fastq using fastq-dump on a CentOS machine. I already have the sra files downloaded so I do not want to redownload them. The command sratoolkit.2.3.5-2-centos_linux64/bin/fastq-dump SRR554454.sra seems to do nothing. There is no error, no output, and it does not seem to be using up any cpu or network either. What am I doing wrong?

sra fastq • 14k views
ADD COMMENT
1
Entering edit mode

You are using the correct command. This link says "fastq-dump would still attempt to contact NCBI to obtain the references needed to convert the data to fastq". So is it possible that there is a network connection problem? I would suggest using a small dataset first, since the process takes a while. And also try to do fastq-dump SRR554454 directly, which download the data from SRA and then output the data in fastq format.

ADD REPLY
1
Entering edit mode

It's important to use the --split-files if it is paired end, otherwise you will get a very messy fastq file

ADD REPLY
0
Entering edit mode

You sure the sra file is in the same directory as you invoke fastq-dump?

ADD REPLY
3
Entering edit mode
10.5 years ago
Varun Gupta ★ 1.3k

HI,

I just downloaded the file and used this and it worked

/apps1/sratoolkit/2.3.3-2/bin/fastq-dump --split-files SRR554454.sra

2 separate files are produced (paired end) SRR554454_1.fastq SRR554454_2.fastq

ADD COMMENT
0
Entering edit mode

This does nothing in my case, as before, no activity at all, or error. Does this try to connect to ncbi even if the sra file is downloaded?

ADD REPLY
0
Entering edit mode

Apparently it does need to connect to ncbi. Once I moved to a machine outside the firewall, it worked fine.

ADD REPLY
0
Entering edit mode
10.5 years ago
piet ★ 1.9k

According to this recipe I used option -A to convert a file which I had already downloaded locally. For debugging it may also help to set option -v once or several times.

fastq-dump -v -A ./SRR554454.sra
ADD COMMENT

Login before adding your answer.

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