Download All Genomes: Difference between revisions

From genomewiki
Jump to navigationJump to search
No edit summary
(shorter version)
Line 1: Line 1:
This script will download the most current version for all genomes that can be rsynced from hgwdownload. It will only download 2bit files.  
It may be a little more direct to run the following bash shell command:
mysql --user=genome --host=genome-mysql.cse.ucsc.edu -A -N \
      -e "select name from dbDb where active=1;" hgcentral | while read D
do
    rsync -a --progress \
        rsync://hgdownload.cse.ucsc.edu/gbdb/${D}/${D}.2bit ./${D}.2bit
done
 
Or, the following script will download the most current version for all genomes that can be rsynced from hgwdownload. It will only download 2bit files.  


It is written in python and is using the rsync program.
It is written in python and is using the rsync program.
Line 5: Line 13:


[[Image:RetrUcscGenomes.txt]]
[[Image:RetrUcscGenomes.txt]]
[[Category:User_Developed_Scripts]]

Revision as of 23:45, 7 January 2010

It may be a little more direct to run the following bash shell command:

mysql --user=genome --host=genome-mysql.cse.ucsc.edu -A -N \
      -e "select name from dbDb where active=1;" hgcentral | while read D
do
   rsync -a --progress \
       rsync://hgdownload.cse.ucsc.edu/gbdb/${D}/${D}.2bit ./${D}.2bit
done

Or, the following script will download the most current version for all genomes that can be rsynced from hgwdownload. It will only download 2bit files.

It is written in python and is using the rsync program. Note the -f parameter to override the selection of the genomes. use -h for help. Downloaded files go into the current directory.

File:RetrUcscGenomes.txt