problem with downloading files
1
1
Entering edit mode
7.5 years ago
elisheva ▴ 120

Hello everyone!
I have a problem with downloading files from ensembl.
I am trying to download some files using rsync command.
I have a text file of all the paths for all the file.
The problem is that I can't extract them.
Here is my shell script:

#!/bin/bash
while read line
do
echo $line
rsync -av $line 
done < path.txt

while path.txt is this txt file:

rsync://ftp.ensembl.org/ensembl/pub/release-89/fasta/ailuropoda_melanoleuca/cdna/Ailuropoda_melanoleuca.ailMel1.cdna.all.fa.gz ./
rsync://ftp.ensembl.org/ensembl/pub/release-89/fasta/anas_platyrhynchos/cdna/Anas_platyrhynchos.BGI_duck_1.0.cdna.all.fa.gz ./

of course there are much more paths.

I did all this according to ensemble instructions: http://www.ensembl.org/info/data/ftp/rsync.html
For one path it works quite well....
The problem is for more than one file...
Using tar or gunzip did not help.
Can someone solve this problem?
Thanks!!

rsync ensembl • 2.9k views
ADD COMMENT
0
Entering edit mode

Your example script works fine for me, is there an error message your are getting?

ADD REPLY
0
Entering edit mode

I couldn't extract the files. But I changed it, so now the text file looks like this: rsync -av ..... path. for each line. and it worked fine.

ADD REPLY
2
Entering edit mode
7.5 years ago
Emily 24k

Your ftp links should begin:

rsync://ftp.ensembl.org/pub/release-89/fasta/
ADD COMMENT
1
Entering edit mode

It doesn't work - I get an error when I run it...
on http://www.ensembl.org/info/data/ftp/rsync.html
It says to add the ensembl/

ADD REPLY

Login before adding your answer.

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