Hello I need to retrieve several fastq files (paired end reads) from NCBI: First I retrieved all the SRA accessions IDs of the needed sequencing files so I have a SraAccList.txt file. The content of the file is the following
cat SraAccList.txt
ERR4234198
ERR4234199
ERR4234200
So I want to retrieve them on my local machine using fastq-dump
This is what I tried:
#! /bin/bash
accs=$(cat SraAccList.txt)
for i in $accs
do
fastq-dump -v --gzip $i
done
But I have the following error message:
2022-04-18T18:38:51 fastq-dump.3.0.0 err: error unexpected while resolving query within virtual file system module - No accession to process ( 500 ) Failed to call external services.
what am I doing wrong?
Thanks for your time :)
An easier way to do this is
dos2unix <filename>
, which converts line-endings in-place.