[Bioc-devel] downloads number status shields for packages

Lori Shepherd shepherl at gmail.com
Thu May 5 20:51:40 CEST 2016


Hi Marcin,

Here is a link to how Bioconductor creates it's badges:
https://github.com/Bioconductor/bioconductor.org/blob/master/Rakefile#L648

If you would like to create a badge for raw counts the following might
be of use to you. Please also see help on XML Path Language:
https://www.w3.org/TR/xpath/#path-abbrev



library(xml2)
url = "http://bioconductor.org/packages/stats/bioc/RTCGA.html"
doc = read_html(url)
rtcga = xml_find_all(doc, "//table[@class='stats']/tr/td[2]/text()")
%>% as.character %>% as.integer

url2 = "http://bioconductor.org/packages/stats/index.html"
doc2 = read_html(url2)
all = xml_find_all(doc2, "//table[@class='stats']/tr/td[2]/text()")
%>% as.character %>% as.integer



On Wed, May 4, 2016 at 3:43 PM, Marcin Kosiński <m.p.kosinski at gmail.com> wrote:
> Hi Robert,
>
> Thanks for reply.
>
> What if I am interested in both showing raw counts and percentiles?
> If this is not created and no one is willing to create sush shields, then I
> can volounteer for that.
> It'll be great to have some examples on how the percentile badges were
> created.
>
> Best,
> Marcin
>
>
> 2016-05-04 17:22 GMT+02:00 Dan Tenenbaum <dtenenba at fredhutch.org>:
>
>> That's correct.
>> Dan
>>
>>
>> ----- Original Message -----
>> > From: "Andrzej Oleś" <andrzej.oles at gmail.com>
>> > To: "Robert M. Flight" <rflight79 at gmail.com>
>> > Cc: "Marcin Kosiński" <m.p.kosinski at gmail.com>, "bioc-devel" <
>> bioc-devel at r-project.org>, "Dan Tenenbaum"
>> > <dtenenba at fredhutch.org>
>> > Sent: Wednesday, May 4, 2016 8:15:36 AM
>> > Subject: Re: [Bioc-devel] downloads number status shields for packages
>>
>> > Hi Marcin, Robert,
>> >
>> > I think one problem with raw counts is that these reflect only downloads
>> > from BioC servers and not from the mirrors - is that correct @Dan?
>> >
>> > Cheers,
>> > Andrzej
>> >
>> > On Wed, May 4, 2016 at 5:11 PM, Robert M. Flight <rflight79 at gmail.com>
>> > wrote:
>> >
>> >> Those numbers are used to calculate the percentile download stat that is
>> >> already on a given bioconductor package landing page. See
>> >> http://bioconductor.org/packages/release/bioc/html/RTCGA.html
>> >>
>> >> I believe this was the way the Bioc admins went instead of just raw
>> >> downloads.
>> >>
>> >> -Robert
>> >>
>> >> On Wed, May 4, 2016 at 10:58 AM Marcin Kosiński <m.p.kosinski at gmail.com
>> >
>> >> wrote:
>> >>
>> >> > Hi all,
>> >> >
>> >> > Have anyone considered creating shields (http://shields.io/) with the
>> >> > status of total downloads number for packages held on bioc? This
>> already
>> >> > works for CRAN packages http://cranlogs.r-pkg.org/
>> >> >
>> >> > It could take total `Nb of downloads` from the right table like here
>> >> > http://bioconductor.org/packages/stats/bioc/RTCGA.html
>> >> >
>> >> > Best,
>> >> > Marcin
>> >> >
>> >> >         [[alternative HTML version deleted]]
>> >> >
>> >> > _______________________________________________
>> >> > Bioc-devel at r-project.org mailing list
>> >> > https://stat.ethz.ch/mailman/listinfo/bioc-devel
>> >> >
>> >>
>> >>         [[alternative HTML version deleted]]
>> >>
>> >> _______________________________________________
>> >> Bioc-devel at r-project.org mailing list
>> >> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>>
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioc-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel



More information about the Bioc-devel mailing list