Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
2e8e16e
ci: copy docker actions from CHARLIE
kelly-sovacool Oct 24, 2024
be6c030
feat: create docker for SCVI
kelly-sovacool Oct 24, 2024
6e8ba38
refactor: collapse source.R into scvi.R
kelly-sovacool Oct 24, 2024
7ffc989
fix: remove installation code
kelly-sovacool Oct 24, 2024
e00f6fa
refactor: set scvi container
kelly-sovacool Oct 24, 2024
d3228e9
fix: install deps with conda where possible
kelly-sovacool Oct 24, 2024
16e860d
fix: workdir for install packages script
kelly-sovacool Oct 24, 2024
504d1b0
fix: loosen signac & singler versions for mamba
kelly-sovacool Oct 24, 2024
c9ba922
ci: pass github PAT for remotes rate limit
kelly-sovacool Oct 24, 2024
8f46efd
chore: Merge branch 'main' into containerize
kelly-sovacool Oct 24, 2024
561480f
fix: create docker for integration
kelly-sovacool Oct 24, 2024
aa1463a
fix: typo
kelly-sovacool Oct 24, 2024
b555074
ci: use github pat for docker-auto
kelly-sovacool Oct 24, 2024
5f4b447
ci: unset github_pat at end of container creation
kelly-sovacool Oct 24, 2024
33a1b27
feat: add liger to scvi container
kelly-sovacool Oct 24, 2024
f05274f
fix: typos
kelly-sovacool Oct 24, 2024
1137fa7
ci: run docker-auto on containerize branch
kelly-sovacool Oct 24, 2024
407bd25
feat: create container for harmony, cca, and rpca
kelly-sovacool Oct 24, 2024
3f07ee6
fix: remove pkg install code from remaining batch correction Rmd files
kelly-sovacool Oct 24, 2024
c784319
fix: create container for seurat_merge
kelly-sovacool Oct 24, 2024
5d86acd
fix: no need for install.R script
kelly-sovacool Oct 24, 2024
bc4ce69
fix: set container for cellranger v7.2.0
kelly-sovacool Oct 24, 2024
20cf40a
feat: create container for seurat preproc
kelly-sovacool Oct 24, 2024
814587e
fix: remove all hpc modules
kelly-sovacool Oct 24, 2024
616dcc2
fix: remove sinclair_baser container
kelly-sovacool Oct 24, 2024
a690dd1
fix: correct tag for cellranger docker
kelly-sovacool Oct 24, 2024
0c55dc6
ci: fix path to test_dir
kelly-sovacool Oct 24, 2024
da8aeb6
chore: update config profiles from champagne
kelly-sovacool Oct 25, 2024
f739b71
ci: stub run does not need docker
kelly-sovacool Oct 25, 2024
95fa696
fix: implement actual stub for samplesheet_check
kelly-sovacool Oct 25, 2024
97ef807
fix: increase singularity pull timeout
kelly-sovacool Oct 25, 2024
e1886a8
refactor: make sure slurm stdout & stderr go to same log file
kelly-sovacool Oct 25, 2024
d162b1f
fix: remove all references to Rlib_dir and Rpkg_config
kelly-sovacool Oct 25, 2024
2c0930e
fix: load packages needed in R Markdown notebooks
kelly-sovacool Oct 25, 2024
9c1443e
chore: remove unneeded installation files
kelly-sovacool Oct 25, 2024
b539ef8
fix: remove all refs to conda_path & python_path
kelly-sovacool Oct 25, 2024
8e63526
fix: add R.utils to preproc docker
kelly-sovacool Oct 25, 2024
bb88f86
fix: try copying files for samplesheet check stub
kelly-sovacool Oct 25, 2024
181a08a
ci: run stub with docker
kelly-sovacool Oct 28, 2024
a151099
refactor: remove stub for SAMPLESHEET_CHECK
kelly-sovacool Oct 28, 2024
1ad964e
fix: improve R tracekback for preprocess rmd
kelly-sovacool Oct 28, 2024
99b9409
chore: Merge branch 'main' into containerize
kelly-sovacool Oct 28, 2024
6e60fb7
chore: move functions used only by preprocess
kelly-sovacool Oct 30, 2024
4d39d4a
fix: move options() code to Rmd
kelly-sovacool Oct 30, 2024
5555f3d
Merge branch 'main' into containerize
kelly-sovacool Nov 6, 2024
413e61e
fix: bump evaluate to v1.0.3
kelly-sovacool Jan 13, 2025
be7a34c
ci: use Python 3.11
kelly-sovacool Jan 13, 2025
3d4e93b
chore: Merge branch 'main' into containerize
kelly-sovacool Sep 19, 2025
b5884c8
ci(build): add back origin/base_ref
kelly-sovacool Sep 19, 2025
6e35700
ci(docker): one seurat5 container for all processes
kelly-sovacool Sep 19, 2025
5cb85f8
chore: ignore .singularity
kelly-sovacool Sep 19, 2025
4c53389
chore: switch to one container for all processes that require Seurat 5
kelly-sovacool Sep 19, 2025
a2bfca3
ci: 📑 update params docs with 'nf-core pipelines schema docs'
github-actions[bot] Sep 19, 2025
37d81fd
chore: move docker recipe to Dockers2 repo
kelly-sovacool Sep 19, 2025
d48af91
Sets up a dedicated cache directory for retrieving celldex reference …
wong-nw Oct 15, 2025
1b820ae
chore: Merge branch 'iss199' into containerize
kelly-sovacool Oct 15, 2025
32c3069
fix: drop _v3 from doubletFinder functions
kelly-sovacool Oct 15, 2025
209694a
fix: copy gypsum cache
kelly-sovacool Oct 15, 2025
1bf85b9
fix: syntax
kelly-sovacool Oct 15, 2025
5066338
chore: update outdir to results/
kelly-sovacool Oct 15, 2025
9bd845f
chore: update container version
kelly-sovacool Oct 16, 2025
8be0709
ci: 📑 update params docs with 'nf-core pipelines schema docs'
github-actions[bot] Oct 16, 2025
0abe6c6
chore: update CHANGELOG.md
kelly-sovacool Oct 16, 2025
6f241d2
fix: set doubletFinder(reuse.pANN = NULL)
kelly-sovacool Nov 7, 2025
9ef45f2
fix: do not use pANN in DoubletFinder
kelly-sovacool Nov 7, 2025
f645dcb
chore: Revert "fix: do not use pANN in DoubletFinder"
kelly-sovacool Nov 7, 2025
eb455da
fix: revert back to doubletFinder v3 functions
kelly-sovacool Nov 10, 2025
35bb940
update to functions to include local caching of celldex reference and…
wong-nw Nov 12, 2025
58e3704
Update to SingleR application to cluster average, with catch for new …
wong-nw Nov 13, 2025
24262a2
Update CHANGELOG.md
wong-nw Nov 13, 2025
c7fa14a
Update CHANGELOG.md
wong-nw Nov 13, 2025
7f94c0a
ci: 🤖 format everything with pre-commit
github-actions[bot] Nov 13, 2025
7e03e6d
fix: remove _v3 -- not present in later version
kelly-sovacool Nov 19, 2025
a8385ee
fix: celldex::fetchReference()
kelly-sovacool Nov 21, 2025
5dcc84a
Merge pull request #203 from CCBR/iss199_fetchreference
kelly-sovacool Dec 8, 2025
d0c5c08
chore: Merge branch 'iss199_fetchreference' into containerize
kelly-sovacool Jan 7, 2026
b19630e
chore: Merge branch 'containerize' of https://github.com/CCBR/SINCLAI…
kelly-sovacool Jan 7, 2026
161e709
Merge branch 'main' into containerize
wong-nw Feb 20, 2026
8829f92
Merge branch 'main' into containerize
kelly-sovacool Feb 26, 2026
2a83bbf
fix: combine celldex path w/ h5 input channel for seurat preprocess
kelly-sovacool Mar 12, 2026
5b4da92
chore: Merge branch 'main' into main-containerze
kelly-sovacool Mar 13, 2026
c34faee
ci: 📑 update params docs with 'nf-core pipelines schema docs'
github-actions[bot] Mar 13, 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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
uses: adamrtalbot/detect-nf-test-changes@v0.0.6
with:
head: ${{ github.sha }}
base: ${{ github.base_ref }}
base: origin/${{ github.base_ref }}
include: .github/include.yml
- name: print list of nf-test files
run: |
Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/docker-auto.yml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/docker-manual.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ log/
.nf-test/
results/
output
.singularity/
submit_slurm.sh

# tmp ignore testing fastqs
test_dir/*/*/*.gz
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## SINCLAIR development version

- All nextflow processes now use containers rather than environment modules for dependencies. (#95, @kelly-sovacool)

### Bug fixes

- Creates cache for celldex reference downloads in working directory (#203, @wong-nw)
- Set main job memory to 2 GB for slurm mode. (#205, @kelly-sovacool)

## SINCLAIR 0.3.5
Expand Down
2 changes: 1 addition & 1 deletion assets/slurm_header_biowulf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#SBATCH -J "sinclair"
#SBATCH --mail-type=BEGIN,END,FAIL
#SBATCH --output "log/slurm_%j.log"
#SBATCH --output "log/slurm_%j.log"
#SBATCH --error "log/slurm_%j.log"

module load ccbrpipeliner
module load nextflow
Expand Down
2 changes: 1 addition & 1 deletion assets/slurm_header_frce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#SBATCH -J "sinclair"
#SBATCH --mail-type=BEGIN,END,FAIL
#SBATCH --output "log/slurm_%j.log"
#SBATCH --output "log/slurm_%j.log"
#SBATCH --error "log/slurm_%j.log"

module load nextflow
NXF_SINGULARITY_CACHEDIR=/mnt/projects/CCBR-Pipelines/SIFs
50 changes: 18 additions & 32 deletions bin/batch_correction_cca.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,58 +8,44 @@ editor_options:
params:
species: "hg38"
gid: "group1-group2"
mergedObj: "/data/sevillas2/sinclair/dev/results/seurat/merge/group1-group2_seurat_merged.rds"
mergedObj: "results/seurat/merge/group1-group2_seurat_merged.rds"
resolution_list: "0.1,0.2,0.3,0.5,0.6,0.8,1"
npcs: 50
vars_to_regress: NULL
Rlib_dir: "/data/CCBR_Pipeliner/db/PipeDB/Rlibrary_4.3_scRNA_RHEL8/"
Rpkg_config: "/data/CCBR_Pipeliner/Pipelines/SINCLAIR/dev/conf/Rpack.config"
scRNA_functions: "/data/CCBR_Pipeliner/Pipelines/SINCLAIR/dev/bin/scRNA_functions.R"
scRNA_functions: "bin/scRNA_functions.R"
celldex_cache: NULL
testing: "Y"
---


```{r, prep_args, message=FALSE}
```{r setup, message=FALSE}
options(future.globals.maxSize = 96000 * 1024^2)
# set up params
species <- params$species
gid <- params$gid
mergedObj <- params$mergedObj
resolution <- as.numeric(strsplit(params$resolution_list, ",")[[1]])
npcs <- as.numeric(params$npcs)

vars_to_regress <- params$vars_to_regress
vars_to_regress_list <- if (is.null(vars_to_regress) || toupper(vars_to_regress) == "NULL") {
NULL
} else {
unlist(strsplit(gsub(" ", "", vars_to_regress), ","))
}
Rlib_dir <- params$Rlib_dir
Rpkg_config <- params$Rpkg_config
testing <- params$testing
scRNA_functions <- params$scRNA_functions
```

```{r, handle_pkg, message=FALSE}
# source functions
source(scRNA_functions)

# set library dir, load this and remove any other dirs to avoid confusion
# between personally created pkgs and the pipeline package
## saving old path "/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library"
print(paste0("Using the lib.loc location: ", Rlib_dir))
assign(".lib.loc", Rlib_dir, envir = environment(.libPaths))
.libPaths()

# read in package info
pkg_df <- read.csv(Rpkg_config)
pkg_df <- subset(pkg_df, cca == "Y")
pkg_df

# for each package check installation, if present then load library
scRNA_handle_packages(pkg_df)
celldex_cache <- params$celldex_cache
testing <- params$testing

# additional options
# tinytex::install_tinytex(force = TRUE)
options(future.globals.maxSize = 96000 * 1024^2)
source(params$scRNA_functions)
library(Seurat)
library(SingleR)
library(tinytex)
library(AnnotationDbi)
library(org.Hs.eg.db)
library(org.Mm.eg.db)
library(Orthology.eg.db)
library(harmony)
```

```{r, processing, message=FALSE}
Expand All @@ -74,7 +60,7 @@ so[["RNA"]] <- split(so[["RNA"]], f = so$Sample)
# integrate
so_corrected <- MAIN_BATCH_CORRECTION(so, npcs, species, resolution,
method_in = "CCAIntegration", reduction_in = "CCA",
v_list = vars_to_regress_list
v_list = vars_to_regress_list, cache_path = celldex_cache
)
```

Expand Down
49 changes: 18 additions & 31 deletions bin/batch_correction_harmony.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,43 @@ editor_options:
chunk_output_type: console
params:
gid: "group1_group2"
mergedObj: "/data/sevillas2/sinclair/dev/results/seurat/merge/group1-group2_seurat_merged.rds"
mergedObj: "results/seurat/merge/group1-group2_seurat_merged.rds"
species: "hg38"
resolution_list: "0.1,0.2,0.3,0.5,0.6,0.8,1"
npcs: "50"
vars_to_regress: NULL
Rlib_dir: "/data/CCBR_Pipeliner/db/PipeDB/Rlibrary_4.3_scRNA_RHEL8/"
Rpkg_config: "/data/CCBR_Pipeliner/Pipelines/SINCLAIR/dev/conf/Rpack.config"
scRNA_functions: "/data/CCBR_Pipeliner/Pipelines/SINCLAIR/dev/bin/scRNA_functions.R"
scRNA_functions: "bin/scRNA_functions.R"
celldex_cache: NULL
testing: "Y"
---

```{r, prep_args, message=FALSE, echo=FALSE, include=FALSE}
```{r setup, message=FALSE, echo=FALSE, include=FALSE}
options(future.globals.maxSize = 96000 * 1024^2)
# set up params
species <- params$species
gid <- params$gid
mergedObj <- params$mergedObj
resolution <- as.numeric(strsplit(params$resolution_list, ",")[[1]])
npcs <- as.numeric(params$npcs)

source(params$scRNA_functions)
library(Seurat)
library(SeuratWrappers)
library(SingleR)
library(tinytex)
library(AnnotationDbi)
library(org.Hs.eg.db)
library(org.Mm.eg.db)
library(Orthology.eg.db)
library(harmony)
vars_to_regress <- params$vars_to_regress
vars_to_regress_list <- if (is.null(vars_to_regress) || toupper(vars_to_regress) == "NULL") {
NULL
} else {
unlist(strsplit(gsub(" ", "", vars_to_regress), ","))
}
Rlib_dir <- params$Rlib_dir
Rpkg_config <- params$Rpkg_config
scRNA_functions <- params$scRNA_functions
```

```{r, handle_pkg, message=FALSE}
# source functions
source(scRNA_functions)

# set library dir, load this and remove any other dirs to avoid confusion
# between personally created pkgs and the pipeline package
## saving old path "/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library"
print(paste0("Using the lib.loc location: ", Rlib_dir))
assign(".lib.loc", Rlib_dir, envir = environment(.libPaths))
.libPaths()

# read in package info
pkg_df <- read.csv(Rpkg_config)
pkg_df <- subset(pkg_df, harmony == "Y")
pkg_df

# for each package check installation, if present then load library
scRNA_handle_packages(pkg_df)
celldex_cache <- params$celldex_cache

# additional options
# tinytex::install_tinytex(force = TRUE)
options(future.globals.maxSize = 96000 * 1024^2)
```

Expand All @@ -72,7 +59,7 @@ so[["RNA"]] <- split(so[["RNA"]], f = so$Sample)
# integrate
so_corrected <- MAIN_BATCH_CORRECTION(so, npcs, species, resolution,
method_in = "HarmonyIntegration", reduction_in = "harmony",
v_list = vars_to_regress_list
v_list = vars_to_regress_list, cache_path = celldex_cache
)
```

Expand Down
Loading
Loading