[Genome] Custom tracks
Peter Chines
pchines at mail.nih.gov
Thu Oct 26 02:01:46 PDT 2006
Hi Kate,
I'm sorry for not responding more quickly to your last email. I spent
most of the day yesterday meeting with a colleague from out of town.
I agree with what you say below, except that the header is
"Content-Type: text/plain". I finally also figured out why I was
getting the initial error: a bug was sometimes causing an error message
to be incorporated into the output from my CGI script; the error message
begins with a "Content-Type" header, and that's the one that the
browser--quite rightly--rejected.
Thanks very much for your help, and I apologize for the extra work I
created for you all when the bug was in my code the whole time.
Peter
On Wed, Oct 25, 2006 at 04:48:23PM -0700, Kate Rosenbloom wrote:
> Hello Peter,
>
> From our recent discussions, it appears that your
> custom tracks are again working -- please contact
> us if this is not the case. I also wanted to share with
> the list what we learned...
>
> The problem with the URL listed, below, is the use of
> an NPH (non-parsed header) CGI script,
> (which you tried as a work-around for
> HTTP header errors you were encountering).
> This style of script isn't standard HTTP, and is
> not supported by our site -- we need at least
> a minimal header in the custom track submission
> via URL -- at a minimum the data must be
> prepended with "Content: plain/text"
> followed by an empty line.
>
> Cheers,
> Kate
>
> Peter Chines <pchines at mail.nih.gov> writes:
> >Hello,
> >
> >I notice that there have been big changes to the handling of custom
> >tracks. While in general I think these changes are great, I'm having
> >some difficulty changing my programs to adapt to the new system, and
> >wonder if you can give me some pointers.
> >
> >In the past, I used a local webserver to generate a redirect to the
> >URLs like the following:
> >
> >http://genome.ucsc.edu/cgi-bin/hgTracks?db=hg17&hgt.customText=http://
> >fusion.nhgri.nih.gov/ucsc/nph-tracks.cgi?snp=rs5400%26pval=p_snp
> >
> >This used to work, retrieving a set of custom tracks generated from our
> >local database and displaying them in the browser.
> >
> >I have tried to adapt this to the new custom tracks system, but I've
> >found that even entering this URL:
> >
> >http://fusion.nhgri.nih.gov/ucsc/nph-tracks.cgi?snp=rs5400&pval=p_snp
> >
> >manually on the Add Custom Tracks page does not work (it simply returns
> >the Add Custom Tracks page again). On the other hand, submitting the
> >actual text of the tracks does seem to work. I am obviously doing
> >somethign wrong, but don't know what. Any hints you could give would
> >be
> >much appreciated. Ultimately, I'd like to end up with a URL that I can
> >redirect my users to that will allow them to see our custom tracks
> >(which are generated on the fly, not stored) in the UCSC browser.
> >
> >Thanks,
> >Peter
> >
> >
> >----------------------------------------------------------------
> >Peter Chines Computer Scientist
> >Genome Technology Branch FUSION Study Group
> >National Human Genome Research Institute
> >National Institutes of Health
> >50 South Drive, Room 5318, MSC 8004 pchines at mail.nih.gov
> >Bethesda, MD 20892-8004 +1-301-435-6075
> >----------------------------------------------------------------
> >_______________________________________________
> >Genome maillist - Genome at soe.ucsc.edu
> >http://www.soe.ucsc.edu/mailman/listinfo/genome
More information about the Genome
mailing list