Get biocViews Co-Occurrence Counts
get_view_cooccurrences.RdGet biocViews Co-Occurrence Counts
Arguments
- view
A biocViews term.
- pkg_list
Value of a call to
biocPkgList(). IfNULL(default), will callbiocPkgList()internally. See Details.- keep_self
Logical. Include
viewitself in the output.- ratio
Logical. Return fraction of packages annotated with
viewalso annotated with each other term, rather than raw counts.
Value
A tibble of two columns: date and cooccurences.
package is a biocViews term.
value is the number (or fraction, if ratio = TRUE) of packages associated with both view and package.
Details
Calling BiocPkgTools::biocPkgList() and passing the result to
get_packages_by_view() or get_packages_by_views() is more efficient
if you are making multiple calls.
See vignette 'Optimisations' for a more comprehensive discussion and demonstration.
Examples
suppressPackageStartupMessages(library(dplyr))
biocpkglist <- get_all_biocpkglist(verbose = FALSE)
get_view_cooccurrences("Spatial", pkg_list = biocpkglist) |>
arrange(desc(value))
#> # A tibble: 65 × 2
#> package value
#> <chr> <int>
#> 1 Transcriptomics 51
#> 2 SingleCell 49
#> 3 GeneExpression 42
#> 4 DataImport 18
#> 5 RNASeq 15
#> 6 Clustering 14
#> 7 ImmunoOncology 10
#> 8 DataRepresentation 8
#> 9 CellBasedAssays 7
#> 10 QualityControl 7
#> # ℹ 55 more rows