How can I download selected individual reads from SRA without downloading the whole run file using command line?
How can I download selected individual reads from SRA without downloading the whole run file using command line?
You can probably use fastq-dump
to download SRR1803613.479767.1 as follows but I haven't tried paired reads, etc with this.
fastq-dump -A SRR1803613 -N 479767 -X 479767 --fasta
What do you mean by "download selected individual reads"? How do you know which reads you want to download?
fastq-dump
allows streaming the output, so you can combine it with head
to download the first whatever number of reads you want. However, there is random access to these files, so you can't access "individual" reads, and there is no way of skipping download a certain number of reads - you can combine head
and tail
, for example, but you still have to download the reads before discarding them.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
perfect. This is what I want. I will go for this and see what I will get and will try it for paired end reads and tell you. I will work on both.
It worked well with single ends and paired ends. However, in paired ends, it downloads both not either of them alone. '-N' and '-X' options do not accept other than numerals. They do not accept the dot (.1 or .2) do you have a way to download either of them when wanted?
I got an error message due to the missing parameter for the fasta option. I give a corrected example here: C: How to retrieve an individual read with fastq-dump