Skip to content
Prev 3061 / 21312 Next

[Bioc-devel] Rsamtools Reading TabixFile URL

On 12/22/2011 06:30 PM, Dario Strbenac wrote:
You could use RCurl to figure out the updated location, along the lines of

library(RCurl)
h <- basicTextGatherer()
res <- curlPerform(URL=url, followlocation=FALSE,
                    headerfunction=h$update)
sub(".*Location: ([^[:cntrl:]]+).*", "\\1", h$value())

Martin