Dear Kai,
Thank you for using the UCSC Genome Browser and your question about acquiring the download link for an ENCODE file with just the filename.
To begin with, please see this resources and FAQ page about ENCODE data, which includes a link to the ENCODE experiment matrix which provides a graphical way to identify files and tracks:
http://genome.ucsc.edu/ENCODE/FAQ/index.html
If you were interested in all the ENCODE files in a given experiment (wgEncodeHaibTfbs), you could rsync the entire directory (trailingSlash/) with a command such as the following:
Since you have hundreds of file names, and you are interested in only these files, you will need to build a script to specify each file ($i). For example, your file of interest wgEncodeHaibTfbsH1hescAtf3V0416102AlnRep1.bam (and likely associated file.bam.bai which you should include in your list), can be parsed to identify the directory, wgEncodeHaibTfbs. With all the HAIB TFBS files grouped in a file called fileListWgEncodeHaibTfbs, you could then run the following to rsync those files to your current directory(./):
Thank you again for your inquiry and using the UCSC Genome Browser. If you have any further questions, please reply to
gen...@soe.ucsc.edu. All messages sent to that address are archived on a publicly-accessible forum. If your question includes sensitive data, you may send it instead to
genom...@soe.ucsc.edu.
All the best,
Brian Lee
UCSC Genome Bioinformatics Group