Technically yes, since I can do

function(path) {
  `[[`(hub, path)
}

Still, I think it does make sense to have something a bit more standard (I
find the `[[` to be a bit unusual, but that may be colored by how I
program).

Retrieving multiple resources in a single call, like
  paths = names(hub)[1:10]
is going to be used a lot, I predict.

Kasper



On Thu, Aug 1, 2013 at 8:14 PM, Marc Carlson <mcarlson@fhcrc.org> wrote:

> Hi Kasper,
>
> I think you could just do the following:
>
> ah[["goldenpath.hg19.**encodeDCC.wgEncodeUwTfbs.**
> wgEncodeUwTfbsMcf7CtcfStdPkRep**1.narrowPeak_0.0.1.RData"]]
>
> Instead of using $ like usual:
>
> ah$goldenpath.hg19.encodeDCC.**wgEncodeUwTfbs.**
> wgEncodeUwTfbsMcf7CtcfStdPkRep**1.narrowPeak_0.0.1.RData
>
>
> Does that solve your problem?
>
>
>   Marc
>
>
>
>
>
>
> On 07/31/2013 06:14 PM, Kasper Daniel Hansen wrote:
>
>> I was wrong about ahinfo.  Is there an exposed interface to getting the
>> result of a path, assuming the path is a character vector.  I see I can do
>>    AnnotationHub:::.getResource(**hub, path)
>> with hub an AnnotationHub and path a character vector.
>>
>> Such an interface would be extremely useful.
>>
>>
>> On Wed, Jul 31, 2013 at 9:02 PM, Kasper Daniel Hansen <
>> kasperdanielhansen@gmail.com> wrote:
>>
>>  About ?AnnotationHub (package version 1.1.8)
>>>
>>> All the functions whose values are described under "Value" are not
>>> described under "Usage".  All the functions listed under "Usage" are not
>>> described under "Value".
>>>
>>> The ahinfo (which seems to be a key function for doing things
>>> programmatically) is not described under either "usage" or "value".
>>>
>>> The examples are great though.
>>>
>>> Best,
>>> Kasper
>>>
>>>          [[alternative HTML version deleted]]
>>
>> ______________________________**_________________
>> Bioconductor mailing list
>> Bioconductor@r-project.org
>> https://stat.ethz.ch/mailman/**listinfo/bioconductor<https://stat.ethz.ch/mailman/listinfo/bioconductor>
>> Search the archives: http://news.gmane.org/gmane.**
>> science.biology.informatics.**conductor<http://news.gmane.org/gmane.science.biology.informatics.conductor>
>>
>
> ______________________________**_________________
> Bioconductor mailing list
> Bioconductor@r-project.org
> https://stat.ethz.ch/mailman/**listinfo/bioconductor<https://stat.ethz.ch/mailman/listinfo/bioconductor>
> Search the archives: http://news.gmane.org/gmane.**
> science.biology.informatics.**conductor<http://news.gmane.org/gmane.science.biology.informatics.conductor>
>

	[[alternative HTML version deleted]]

