Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
974339b
Passing R CMD CHECK and BiocCheck
amcim May 4, 2026
418f379
Adding CI workflow for R CMD and BiocCheck
amcim May 4, 2026
045deab
Mac xquartz for workflow
amcim May 4, 2026
5740643
Makevars files
amcim May 4, 2026
75999b5
Removing external network calls
amcim May 4, 2026
90fff5e
Bioccheck on tarball
amcim May 4, 2026
a89bc2b
applying 4 space indent and start of 80 char limit
amcim May 5, 2026
a9b9b49
updating indentation
amcim May 5, 2026
ae2e9b5
line breaks in vignette
amcim May 6, 2026
1be71c1
Merge remote-tracking branch 'origin/devel' into formatting-clean
amcim May 6, 2026
f041470
Cleaned formatting and adding inst data
amcim May 6, 2026
88d3005
Readme badges
amcim May 6, 2026
f65f2c7
Adding inst data
amcim May 6, 2026
cedcc58
Merge branch 'formatting-clean' into bioconductor_submission
amcim May 6, 2026
53c9aa0
getting rid of block duplicate
amcim May 6, 2026
7fe69a0
adding inst/scripts
amcim May 6, 2026
8b5112a
Removing pkgdown and envs
amcim May 6, 2026
4e50c07
adding examples and document regen
amcim May 6, 2026
de17f7f
Merge remote-tracking branch 'origin/devel' into devel-prep
amcim May 6, 2026
07bb3e5
Merge branch 'devel-prep' into bioconductor_submission
amcim May 6, 2026
bc2e3aa
Adding user choice on compute_svd
amcim May 7, 2026
b2a44f6
Merge remote-tracking branch 'origin/devel' into compute-svd
amcim May 7, 2026
a556e46
Merge branch 'compute-svd' into bioconductor_submission
amcim May 7, 2026
e9c1d6d
Merge remote-tracking branch 'origin/devel' into bioconductor_submission
amcim May 7, 2026
6920eb4
Adding gha for website and logos using favicon
amcim May 9, 2026
eb210bf
updating gha for integration branch
amcim May 9, 2026
e0d731e
workflow remote point to CLAMPData
amcim May 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/BiocCheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
on:
push:
branches: [main, devel]
pull_request:

name: BiocCheck.yaml

permissions: read-all

jobs:
BiocCheck:
runs-on: ubuntu-latest
name: BiocCheck

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Pandoc
uses: r-lib/actions/setup-pandoc@v2

- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: release
http-user-agent: release
use-public-rspm: true

- name: Install Deps
uses: r-lib/actions/setup-r-dependencies@v2
with:
cache: always
# Remove pivlab/CLAMPData once CLAMPData is on Bioconductor;
# it will then be picked up automatically from DESCRIPTION.
extra-packages: |
bioc::BiocCheck
pivlab/CLAMPData

- name: Build tarball
run: R CMD build --no-manual .

- name: Run BiocCheck
run: |
tarball <- list.files(pattern = "^CLAMP_.*\\.tar\\.gz$")[1]
BiocCheck::BiocCheck(tarball, `quit-with-status` = TRUE)
shell: Rscript {0}
58 changes: 58 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, devel]
pull_request:

name: R-CMD-check.yaml

permissions: read-all

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v6

- name: Install XQuartz (macOS)
if: runner.os == 'macOS'
run: brew install --cask xquartz

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}

- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache: always
extra-packages: |
any::rcmdcheck
pivlab/CLAMPData
# Remove pivlab/CLAMPData once CLAMPData is on Bioconductor;
# it will then be picked up automatically from DESCRIPTION.
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
52 changes: 52 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [bioconductor_submission]
pull_request:
release:
types: [published]
workflow_dispatch:

name: pkgdown.yaml

permissions: read-all

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v6

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2

- uses: r-lib/actions/setup-r-dependencies@v2
with:
# Remove pivlab/CLAMPData once CLAMPData is on Bioconductor;
# it will then be picked up automatically from DESCRIPTION.
extra-packages: |
any::pkgdown
local::.
pivlab/CLAMPData
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
with:
clean: false
branch: gh-pages
folder: docs
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
<!-- badges: start -->
[![GitHub issues](https://img.shields.io/github/issues/chikinalab/CLAMP)](https://github.com/chikinalab/CLAMP/issues)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-green.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![BiocCheck](https://github.com/chikinalab/CLAMP/actions/workflows/BiocCheck.yaml/badge.svg)](https://github.com/chikinalab/CLAMP/actions/workflows/BiocCheck.yaml)
[![BiocCheck](https://github.com/mchikina/CLAMP/actions/workflows/BiocCheck.yaml/badge.svg)](https://github.com/chikinalab/CLAMP/actions/workflows/BiocCheck.yaml)
[![R-CMD-check](https://github.com/chikinalab/CLAMP/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/chikinalab/CLAMP/actions/workflows/R-CMD-check.yaml)

<!-- badges: end -->

## Bioconductor release status
Expand Down
Binary file added pkgdown/favicon/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions src/Makevars
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
1 change: 1 addition & 0 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
9 changes: 2 additions & 7 deletions vignettes/comparing_clampbase_clampfull.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ dataWholeBlood <- tscale(dataWholeBlood)
# How to download pathway and cell marker libraries from Enrichr.
# Not run during vignette build to avoid network calls; pre-fetched
# .rds files are loaded in the next chunk instead.
enrichr_url <- "https://maayanlab.cloud/Enrichr/geneSetLibrary"
gmtList <- list(
CellMarkers = getGMT(
paste0(enrichr_url, "?mode=text&libraryName=CellMarker_2024"),
Expand All @@ -75,12 +74,8 @@ gmtList <- list(
```{r load-priors}
# Load pre-fetched gene set libraries bundled with the package
gmtList <- list(
CellMarkers = readRDS(
system.file("extdata", "CellMarker_2024.rds", package = "CLAMP")
),
KEGG = readRDS(
system.file("extdata", "KEGG_2021_Human.rds", package = "CLAMP")
)
CellMarkers = readRDS(system.file("extdata", "CellMarker_2024.rds", package = "CLAMP")),
KEGG = readRDS(system.file("extdata", "KEGG_2021_Human.rds", package = "CLAMP"))
)

# Combine into a single sparse matrix
Expand Down
65 changes: 6 additions & 59 deletions vignettes/get_started.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -475,36 +475,11 @@ alz_baseRes <- CLAMPbase(

## Prepare pathway priors

```{r fbm-priors-download, eval=FALSE}
# How to fetch the libraries; not run during vignette build.
enrichr_url <- "https://maayanlab.cloud/Enrichr/geneSetLibrary"
alz_gmtList <- list(
GTEx_Tissues = getGMT(
paste0(enrichr_url, "?mode=text&libraryName=GTEx_Tissues_V8_2023")
),
BP = getGMT(
paste0(enrichr_url, "?mode=text&libraryName=GO_Biological_Process_2025")
),
MSigDB = getGMT(
paste0(enrichr_url, "?mode=text&libraryName=MSigDB_Hallmark_2020")
)
)
```

```{r fbm-priors, message=FALSE}
alz_gmtList <- list(
GTEx_Tissues = readRDS(
system.file("extdata", "GTEx_Tissues_V8_2023.rds", package = "CLAMP")
),
BP = readRDS(
system.file(
"extdata", "GO_Biological_Process_2025.rds",
package = "CLAMP"
)
),
MSigDB = readRDS(
system.file("extdata", "MSigDB_Hallmark_2020.rds", package = "CLAMP")
)
GTEx_Tissues = getGMT("https://maayanlab.cloud/Enrichr/geneSetLibrary?mode=text&libraryName=GTEx_Tissues_V8_2023"),
BP = getGMT("https://maayanlab.cloud/Enrichr/geneSetLibrary?mode=text&libraryName=GO_Biological_Process_2025"),
MSigDB = getGMT("https://maayanlab.cloud/Enrichr/geneSetLibrary?mode=text&libraryName=MSigDB_Hallmark_2020")
)

alz_pathMat <- gmtListToSparseMat(alz_gmtList)
Expand Down Expand Up @@ -628,39 +603,11 @@ islet_baseRes <- CLAMPbase(

## Prepare pathway priors

```{r islet-priors-download, eval=FALSE}
# How to fetch the libraries; not run during vignette build.
enrichr_url <- "https://maayanlab.cloud/Enrichr/geneSetLibrary"
islet_gmtList <- list(
GTEx_Tissues = getGMT(
paste0(enrichr_url, "?mode=text&libraryName=GTEx_Tissues_V8_2023")
),
Diabetes_Perturbations = getGMT(
paste0(
enrichr_url,
"?mode=text&libraryName=Diabetes_Perturbations_GEO_2022"
)
),
MSigDB_Hallmark = getGMT(
paste0(enrichr_url, "?mode=text&libraryName=MSigDB_Hallmark_2020")
)
)
```

```{r islet-priors, message=FALSE}
islet_gmtList <- list(
GTEx_Tissues = readRDS(
system.file("extdata", "GTEx_Tissues_V8_2023.rds", package = "CLAMP")
),
Diabetes_Perturbations = readRDS(
system.file(
"extdata", "Diabetes_Perturbations_GEO_2022.rds",
package = "CLAMP"
)
),
MSigDB_Hallmark = readRDS(
system.file("extdata", "MSigDB_Hallmark_2020.rds", package = "CLAMP")
)
GTEx_Tissues = getGMT("https://maayanlab.cloud/Enrichr/geneSetLibrary?mode=text&libraryName=GTEx_Tissues_V8_2023"),
Diabetes_Perturbations = getGMT("https://maayanlab.cloud/Enrichr/geneSetLibrary?mode=text&libraryName=Diabetes_Perturbations_GEO_2022"),
MSigDB_Hallmark = getGMT("https://maayanlab.cloud/Enrichr/geneSetLibrary?mode=text&libraryName=MSigDB_Hallmark_2020")
)

islet_pathMat <- gmtListToSparseMat(islet_gmtList)
Expand Down
Loading