Hi,
I have a .hic file (not generated by myself. It is from NBI GEO: https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE128800). I want to upload and visualize this data/file (GSM3685694_chimpanzee_panTro5_mapping.hic) on UCSC browser. I am trying to follow these steps mentioned on UCSC web (copied below):
The typical workflow for generating a hic custom track is this:
- Prepare your data by processing it with the Juicer pipeline to create a file in the hic format.
- Move the hic file (my.hic) to an http, https, or ftp location.
- Construct a custom track using a single track line. The basic version of the track line will look something like this: track type=hic name="My HIC" bigDataUrl=http://myorg.edu/mylab/my.hic
- Paste the custom track line into the text box in the custom track management page, click "submit" and view in the Genome Browser.
As I already have a .hic file uploaded on https location (https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE128800), I assume I will start from step 3. I want to ask how should I modify bigDataUrl for my case. I tried (bigDataUrl=https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE128800/GSM3685694_chimpanzee_panTro5_mapping.hic) but it didn't work.
Second, on the 'add custom track' page, there are two text boxes (one is "Paste URLs or data:" and second is "Optional track documentation:" . For the step 4, which text box should I use to paste the custom track line.
Thank you
Thank you so much for a detailed response. I am new to uploading custom tracks (particularly hic tracks) on UCSC browser. What I understand from the answer is I can't use the NCBI web server and I need to upload this .hic file o github or some webserver. If you can please elaborate the 'range request' part a little more. Thank you again,
range request are not available on all servers. Why is it needed ? then UCSC will NOT download/store the whole file each time you want to display the data. It just extracts the data from the file where(chrom-start-end) the information is known to be found (this is how tools like
tabix
work with remote files )I got the range request concept. Thank you so much. I read on a forum that google drive can be used for this purpose. Now I uploaded this hic file on google drive and used the track line as: track type=hic name="My HIC" bigDataUrl=[google drive link]. The browser is now giving the error that "Hi-C magic string is missing, does not appear to be a hic file". I am able to upload this file on Juicebox. I hope I am using the right link. After uploading this file on google drive, I right clicked the file and from the share drop down menu I clicked on copy link to get the link.
I have exactly the same problem at the moment. Got a "contact matrix" txt file with heatmap values, reformatted it into a .hic file, uploaded it to google drive and tried to use the link to the file as URL for the track. Got the "Hi-C magic string is missing, does not appear to be a hic file" Error. I am not sure if the link is not working, or if it is some issue with the file format, but I can open the file locally with Juicebox just fine.
Google Drive does not allow byte range requests. This is documented by UCSC: https://genome.ucsc.edu/goldenPath/help/hgTrackHubHelp.html#Hosting
You will need to find a hosting provider that allows normal file access, e.g. your University, any normal webserver, or figshare, github, etc.