This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## | |
| ## setup | |
| ## | |
| if (!"BiocManager" %in% rownames(installed.packages())) | |
| install.packages("BiocManager", repository = "https://cran.r-project.org") | |
| BiocManager::install( | |
| ## only reinstall if newer version available | |
| c("cellxgenedp", "plotly") | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## | |
| ## Preliminiaries: install infrasctructure and required packages | |
| ## | |
| ## We've got to be using a least R version 4.1 | |
| my_R_version <- | |
| numeric_version(paste(R.Version()[c("major", "minor")], collapse = ".")) | |
| stopifnot(my_R_version >= "4.1") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| options(width=160) | |
| library(dplyr) | |
| ## BiocManager::install("Bioconductor/hca") | |
| library(hca) | |
| ## projects available in the HCA | |
| projects <- projects() | |
| projects | |
| ## a specific project |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (!"AnVIL" %in% rownames(installed.packages())) | |
| BiocManager::install("AnVIL") | |
| library(AnVIL) | |
| this_workspace = avworkspace() | |
| hca = "featured-workspaces-hca/HCA_Optimus_Pipeline" | |
| thousand_genomes = "anvil-datastorage/1000G-high-coverage-2019" | |
| ## AnVIL 'namespace' / 'name' == workspace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # AWS ECS access via REST | |
| Resources | |
| - [Getting Started with ECS][ECS] | |
| - [REST API][API] | |
| [ECS]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/getting-started-ecs-ec2.html | |
| [API]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/Welcome.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package_dependencies <- tools::package_dependencies | |
| trim <- function(deps, drop) { | |
| lvls = names(deps) | |
| df = data.frame( | |
| pkg = factor(rep(names(deps), lengths(deps)), levels = lvls), | |
| dep = unlist(deps, use.names = FALSE) | |
| ) | |
| df = df[!df$dep %in% drop,, drop = FALSE] | |
| split(df$dep, df$pkg) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(BiocPkgTools) | |
| library(dplyr) | |
| deps_broken <- | |
| function( | |
| pkg, | |
| repos = BiocManager::repositories(), | |
| version = BiocManager::version() | |
| ) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| obo = readLines("go.obo") | |
| ## | |
| ## Clean data | |
| ## | |
| ## blank lines separate different 'groups' in the obo | |
| group <- cumsum(!nzchar(obo)) | |
| ## keep groups that have the [Term] label |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(yaml) | |
| library(dplyr) | |
| library(tibble) | |
| library(lubridate) | |
| library(readr) | |
| library(memoise) | |
| get_releases <- | |
| function() | |
| { |
NewerOlder