Failed to obtain \'hguid\' cookie for UCSC browser session
1
0
Entering edit mode
Guest User ★ 13k
@guest-user-4897
Last seen 9.6 years ago
Dear All, after I have updated my R and Bioconductor, the makeTranscriptDbFromUCSC function from GenomicFeatures package does not work anymore as it gives the following error: "Error in .local(.Object, ...) : Failed to obtain 'hguid' cookie". I'm using Mac version 10.6.8, the software is updated. Here is the R code that led to an error: >library(GenomicFeatures) >supportedUCSCtables() ### the tables are listed >getChromInfoFromUCSC("mm9", goldenPath_url = "http://hgdownload.cse.ucsc.edu/goldenPath") ### the chromosomes and their lengths are listed > txdb = makeTranscriptDbFromUCSC(genome="mm9", tablename="refGene") Error in .local(.Object, ...) : Failed to obtain 'hguid' cookie Does anyone know the solution to this problem? I would be really grateful for your help. -- output of sessionInfo(): R version 3.0.1 (2013-05-16) Platform: x86_64-apple-darwin10.8.0 (64-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] parallel stats graphics grDevices utils datasets methods base other attached packages: [1] GenomicFeatures_1.12.2 AnnotationDbi_1.22.6 Biobase_2.20.1 [4] GenomicRanges_1.12.4 IRanges_1.18.1 BiocGenerics_0.6.0 loaded via a namespace (and not attached): [1] biomaRt_2.16.0 Biostrings_2.28.0 bitops_1.0-5 BSgenome_1.28.0 [5] DBI_0.2-7 RCurl_1.95-4.1 Rsamtools_1.12.3 RSQLite_0.11.4 [9] rtracklayer_1.20.2 stats4_3.0.1 tools_3.0.1 XML_3.95-0.2 [13] zlibbioc_1.6.0 -- Sent via the guest posting facility at bioconductor.org.
GenomicFeatures GenomicFeatures • 3.9k views
ADD COMMENT
0
Entering edit mode
Dan Tenenbaum ★ 8.2k
@dan-tenenbaum-4256
Last seen 3.2 years ago
United States
On Sun, Jul 7, 2013 at 5:37 AM, Maintainer <maintainer at="" bioconductor.org=""> wrote: > > Dear All, > after I have updated my R and Bioconductor, the makeTranscriptDbFromUCSC function from GenomicFeatures package does not work anymore as it gives the following error: "Error in .local(.Object, ...) : Failed to obtain 'hguid' cookie". I'm using Mac version 10.6.8, the software is updated. Here is the R code that led to an error: > >>library(GenomicFeatures) >>supportedUCSCtables() ### the tables are listed >>getChromInfoFromUCSC("mm9", goldenPath_url = "http://hgdownload.cse.ucsc.edu/goldenPath") ### the chromosomes and their lengths are listed >> txdb = makeTranscriptDbFromUCSC(genome="mm9", tablename="refGene") > Error in .local(.Object, ...) : Failed to obtain 'hguid' cookie > > Does anyone know the solution to this problem? I would be really grateful for your help. Archived posts suggest the problem is either a local network/proxy configuration issue, or it may have something to do with the new European mirror. You might try the following (this involves direct slot access and is probably not the approved method, but someone can pipe in with a better way). library(rtracklayer) session <- browserSession("UCSC") url <- session at url session at url <- "http://genome.ucsc.edu/cgi-bin/" Then retry the line that failed before. Dan > > > > -- output of sessionInfo(): > > R version 3.0.1 (2013-05-16) > Platform: x86_64-apple-darwin10.8.0 (64-bit) > > locale: > [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 > > attached base packages: > [1] parallel stats graphics grDevices utils datasets methods base > > other attached packages: > [1] GenomicFeatures_1.12.2 AnnotationDbi_1.22.6 Biobase_2.20.1 > [4] GenomicRanges_1.12.4 IRanges_1.18.1 BiocGenerics_0.6.0 > > loaded via a namespace (and not attached): > [1] biomaRt_2.16.0 Biostrings_2.28.0 bitops_1.0-5 BSgenome_1.28.0 > [5] DBI_0.2-7 RCurl_1.95-4.1 Rsamtools_1.12.3 RSQLite_0.11.4 > [9] rtracklayer_1.20.2 stats4_3.0.1 tools_3.0.1 XML_3.95-0.2 > [13] zlibbioc_1.6.0 > > -- > Sent via the guest posting facility at bioconductor.org. > > ____________________________________________________________________ ____ > devteam-bioc mailing list > To unsubscribe from this mailing list send a blank email to > devteam-bioc-leave at lists.fhcrc.org > You can also unsubscribe or change your personal options at > https://lists.fhcrc.org/mailman/listinfo/devteam-bioc
ADD COMMENT
0
Entering edit mode
This seems to be a European issue; working on a fix now. Michael On Sun, Jul 7, 2013 at 6:40 PM, Dan Tenenbaum <dtenenba@fhcrc.org> wrote: > On Sun, Jul 7, 2013 at 5:37 AM, Maintainer <maintainer@bioconductor.org> > wrote: > > > > Dear All, > > after I have updated my R and Bioconductor, the makeTranscriptDbFromUCSC > function from GenomicFeatures package does not work anymore as it gives the > following error: "Error in .local(.Object, ...) : Failed to obtain 'hguid' > cookie". I'm using Mac version 10.6.8, the software is updated. Here is the > R code that led to an error: > > > >>library(GenomicFeatures) > >>supportedUCSCtables() ### the tables are listed > >>getChromInfoFromUCSC("mm9", goldenPath_url = " > http://hgdownload.cse.ucsc.edu/goldenPath") ### the chromosomes and their > lengths are listed > >> txdb = makeTranscriptDbFromUCSC(genome="mm9", tablename="refGene") > > Error in .local(.Object, ...) : Failed to obtain 'hguid' cookie > > > > Does anyone know the solution to this problem? I would be really > grateful for your help. > > Archived posts suggest the problem is either a local network/proxy > configuration issue, or it may have something to do with the new > European mirror. > > You might try the following (this involves direct slot access and is > probably not the approved method, but someone can pipe in with a > better way). > > library(rtracklayer) > session <- browserSession("UCSC") > url <- session@url > session@url <- "http://genome.ucsc.edu/cgi-bin/" > > Then retry the line that failed before. > > Dan > > > > > > > > > -- output of sessionInfo(): > > > > R version 3.0.1 (2013-05-16) > > Platform: x86_64-apple-darwin10.8.0 (64-bit) > > > > locale: > > [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 > > > > attached base packages: > > [1] parallel stats graphics grDevices utils datasets methods > base > > > > other attached packages: > > [1] GenomicFeatures_1.12.2 AnnotationDbi_1.22.6 Biobase_2.20.1 > > [4] GenomicRanges_1.12.4 IRanges_1.18.1 BiocGenerics_0.6.0 > > > > loaded via a namespace (and not attached): > > [1] biomaRt_2.16.0 Biostrings_2.28.0 bitops_1.0-5 > BSgenome_1.28.0 > > [5] DBI_0.2-7 RCurl_1.95-4.1 Rsamtools_1.12.3 > RSQLite_0.11.4 > > [9] rtracklayer_1.20.2 stats4_3.0.1 tools_3.0.1 > XML_3.95-0.2 > > [13] zlibbioc_1.6.0 > > > > -- > > Sent via the guest posting facility at bioconductor.org. > > > > __________________________________________________________________ ______ > > devteam-bioc mailing list > > To unsubscribe from this mailing list send a blank email to > > devteam-bioc-leave@lists.fhcrc.org > > You can also unsubscribe or change your personal options at > > https://lists.fhcrc.org/mailman/listinfo/devteam-bioc > > _______________________________________________ > Bioconductor mailing list > Bioconductor@r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor > [[alternative HTML version deleted]]
ADD REPLY
0
Entering edit mode
On Jul 8, 2013, at 3:40 AM, Dan Tenenbaum wrote: > On Sun, Jul 7, 2013 at 5:37 AM, Maintainer <maintainer at="" bioconductor.org=""> wrote: >> >> Dear All, >> after I have updated my R and Bioconductor, the makeTranscriptDbFromUCSC function from GenomicFeatures package does not work anymore as it gives the following error: "Error in .local(.Object, ...) : Failed to obtain 'hguid' cookie". I'm using Mac version 10.6.8, the software is updated. Here is the R code that led to an error: >> >>> library(GenomicFeatures) >>> supportedUCSCtables() ### the tables are listed >>> getChromInfoFromUCSC("mm9", goldenPath_url = "http://hgdownload.cse.ucsc.edu/goldenPath") ### the chromosomes and their lengths are listed >>> txdb = makeTranscriptDbFromUCSC(genome="mm9", tablename="refGene") >> Error in .local(.Object, ...) : Failed to obtain 'hguid' cookie >> >> Does anyone know the solution to this problem? I would be really grateful for your help. > > Archived posts suggest the problem is either a local network/proxy > configuration issue, or it may have something to do with the new > European mirror. > > You might try the following (this involves direct slot access and is > probably not the approved method, but someone can pipe in with a > better way). > > library(rtracklayer) > session <- browserSession("UCSC") > url <- session at url > session at url <- "http://genome.ucsc.edu/cgi-bin/" > Hi Dan, Thanks for your e-mail. Unfortunately, the problem persists: > library(rtracklayer) > session <- browserSession("UCSC") Error in .local(.Object, ...) : Failed to obtain 'hguid' cookie Best, Ania > Then retry the line that failed before. > > Dan > >> >> >> >> -- output of sessionInfo(): >> >> R version 3.0.1 (2013-05-16) >> Platform: x86_64-apple-darwin10.8.0 (64-bit) >> >> locale: >> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 >> >> attached base packages: >> [1] parallel stats graphics grDevices utils datasets methods base >> >> other attached packages: >> [1] GenomicFeatures_1.12.2 AnnotationDbi_1.22.6 Biobase_2.20.1 >> [4] GenomicRanges_1.12.4 IRanges_1.18.1 BiocGenerics_0.6.0 >> >> loaded via a namespace (and not attached): >> [1] biomaRt_2.16.0 Biostrings_2.28.0 bitops_1.0-5 BSgenome_1.28.0 >> [5] DBI_0.2-7 RCurl_1.95-4.1 Rsamtools_1.12.3 RSQLite_0.11.4 >> [9] rtracklayer_1.20.2 stats4_3.0.1 tools_3.0.1 XML_3.95-0.2 >> [13] zlibbioc_1.6.0 >> >> -- >> Sent via the guest posting facility at bioconductor.org. >> >> ___________________________________________________________________ _____ >> devteam-bioc mailing list >> To unsubscribe from this mailing list send a blank email to >> devteam-bioc-leave at lists.fhcrc.org >> You can also unsubscribe or change your personal options at >> https://lists.fhcrc.org/mailman/listinfo/devteam-bioc
ADD REPLY
0
Entering edit mode
Dear all, I was thinking along the same lines as Dan. I've run some code of rtracklayer and have some more detailed information that might be useful for debugging, since this indeed seems to be a european problem. When initializing a new instance of "UCSCSession" (when invoking method browserSession with signature missing), the following webadres is assigned by default to its slot “url”: "http://genome.ucsc.edu/cgi-bin/" To knock on the door of the UCSC server something similar as the following code is used: > handle <- getCurlHandle() > gw <- getURL("http://genome.ucsc.edu/cgi-bin/hgGateway", + cookiefile = tempfile(), curl = handle) Which gives a response of the server. This response is in Europe not what is expected, leading to the previously described error. Server response: > gw "\n<html><head>\n302 Found\n</head><body>\n

Found

\n

The document has moved here.

\n
\n
Apache/2.2.3 (CentOS) Server at genome.ucsc.edu Port 80
\n</body></html>\n" Which basically tells me to try a different web-server (a similar warning as we get when we would visit UCSC through the browser in Europe) : http://genome-euro.ucsc.edu/cgi-bin/hgGateway. Following Dan’s suggestion: > browserSession("UCSC",url="http://genome-euro.ucsc.edu/cgi-bin/") Does not really help us as the response of the server: > gw <- getURL("http://genome-euro.ucsc.edu/cgi-bin/hgGateway", + cookiefile = tempfile(), curl = handle) is quite lengthy and informative, though unfortunately it does not contain the stuff we’re looking for. Neither a hguid or the word “Cookie” is present. It does tell about hgsid’s, which are also required for a successful browser session, so I guess I'm on the right place. I can send you the total output if you want. I didn’t paste it in here, because of the length of the response. My guess would be that due to a new European law, sites are not allowed to store cookies locally at users anymore, unless the user explicitly agrees. Hence this is not offered anymore by the European mirror of UCSC. I hope this helps in debugging. Cheerz, Erik [[alternative HTML version deleted]]
ADD REPLY
0
Entering edit mode
I think this has been fixed in rtracklayer 1.20.3 (1.21.8 in devel), which is working its way through the Bioc build system and should be available via biocLite after about 10am Seattle time (or available in svn now). The problem was that (a) queries to genome.ucsc.edu get redirect to a European mirror and (b) the cookie identifier in Europe changes from hguid to hguid.<some more="">. Martin ----- Erik van den Akker <erikvandenakker at="" gmail.com=""> wrote: > Dear all, > > I was thinking along the same lines as Dan. I've run some code of > rtracklayer and have some more detailed information that might be useful > for debugging, since this indeed seems to be a european problem. > > When initializing a new instance of "UCSCSession" (when invoking method > browserSession with signature missing), the following webadres is assigned > by default to its slot ?url?: "http://genome.ucsc.edu/cgi-bin/" > > To knock on the door of the UCSC server something similar as the following > code is used: > > > handle <- getCurlHandle() > > > gw <- getURL("http://genome.ucsc.edu/cgi-bin/hgGateway", > > + cookiefile = tempfile(), curl = handle) > > Which gives a response of the server. This response is in Europe not what > is expected, leading to the previously described error. Server response: > > > gw > > " 2.0//EN\">\n<html><head>\n302 > Found\n</head><body>\n

Found

\n

The document has moved href=\" > http://genome-euro.ucsc.edu:80/cgi-bin/hgGateway?redirect=auto&s ource=genome.ucsc.edu\">here.

\n
\n
Apache/2.2.3 > (CentOS) Server at genome.ucsc.edu Port 80
\n</body></html>\n" > > Which basically tells me to try a different web-server (a similar warning > as we get when we would visit UCSC through the browser in Europe) : > http://genome-euro.ucsc.edu/cgi-bin/hgGateway. Following Dan?s suggestion: > > > browserSession("UCSC",url="http://genome-euro.ucsc.edu/cgi-bin/") > > Does not really help us as the response of the server: > > > gw <- getURL("http://genome-euro.ucsc.edu/cgi-bin/hgGateway", > > + cookiefile = tempfile(), curl = handle) > > is quite lengthy and informative, though unfortunately it does not contain > the stuff we?re looking for. Neither a hguid or the word ?Cookie? is > present. It does tell about hgsid?s, which are also required for a > successful browser session, so I guess I'm on the right place. I can send > you the total output if you want. I didn?t paste it in here, because of the > length of the response. > > My guess would be that due to a new European law, sites are not allowed to > store cookies locally at users anymore, unless the user explicitly agrees. > Hence this is not offered anymore by the European mirror of UCSC. > > I hope this helps in debugging. > > Cheerz, > > Erik > > [[alternative HTML version deleted]] >
ADD REPLY

Login before adding your answer.

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