fastq-dump not working in loop
0
0
Entering edit mode
5 months ago
analyst ▴ 50

I am running loop to download fastq files through fastq-dump but it gives following error

fastq-dump.3.1.1 err: error unexpected while resolving query within virtual file system module - No accession to process ( 500 )
Failed to call external services.

Note. fastq-dump is working fine for single accession.

fastq-dump • 696 views
ADD COMMENT
1
Entering edit mode

Can you add a snippet of your code?

Based on the error it seems you are not providing an accession number.

Regards,

Nitin N.

ADD REPLY
0
Entering edit mode
input=/home/data/Downloads/acc.txt
for file in $(cat $input)
do 
    fastq-dump --orig-fmt --gzip $file -O /home/data/Downloads/raw/
done
ADD REPLY
0
Entering edit mode

I have provided id too

ADD REPLY
1
Entering edit mode

If I am not wrong the accession number is a positional argument in fastq-dump, so probably your command should be something like this,

fastq-dump $file --orig-fmt --gzip -O /home/data/Downloads/raw/

If this doesn't work, it could be a problem with newline character in the accession number, try removing it in this case.

Just asking out of curiosity did you try running your command without a loop? I mean using a single static accession number.

Regards,

Nitin N.

ADD REPLY
0
Entering edit mode

Yes I tried using a single accession and and it worked

ADD REPLY
1
Entering edit mode

show the code you ran?

ADD REPLY
1
Entering edit mode
ADD REPLY

Login before adding your answer.

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