Skip to content

Nextflow#145

Merged
dimalvovs merged 43 commits intomasterfrom
nextflow
Sep 16, 2025
Merged

Nextflow#145
dimalvovs merged 43 commits intomasterfrom
nextflow

Conversation

@dimalvovs
Copy link
Contributor

No description provided.

@dimalvovs dimalvovs requested a review from Copilot September 13, 2025 22:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds Nextflow pipeline enhancements to the CoGAPS package, including improved resource configuration, container updates, and preprocessing capabilities. The changes modernize the Nextflow workflow with better resource limits, updated container versions, and a new preprocessing step for data filtering.

  • Adds a new COGAPS_PREPROCESS process for data filtering and gene selection
  • Updates container versions and resource configurations in nextflow.config
  • Fixes resource allocation patterns and adds proper resource limits
  • Includes comprehensive unit tests for distributed CoGAPS functionality

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
nextflow.config Updates resource limits, removes check_max calls, and increases default memory/CPU allocations
main.nf Adds preprocessing step, updates container versions, reorganizes stub/script sections
tests/testthat/test_DistributedCogaps.R New unit tests for single-cell and genome-wide distributed modes
R/DistributedCogaps.R Bug fixes for accessing fixed patterns in distributed processing
Dockerfile Adds sparseMatrixStats dependency
DESCRIPTION Version bump and date update

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.


# copy P matrix - same for all sets
Pmean <- result[[1]]@sampleFactors
Pmean <- result[[1]]@metadata$params@fixedPatterns
Copy link

Copilot AI Sep 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both genome-wide and single-cell modes are using @fixedPatterns for different matrices. In genome-wide mode, line 236 should likely use @sampleFactors instead of @fixedPatterns for the P matrix, and in single-cell mode, line 258 should use @featureLoadings for the A matrix.

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so.

dimalvovs and others added 3 commits September 13, 2025 18:23
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@dimalvovs dimalvovs requested a review from Copilot September 14, 2025 16:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

@drbergman drbergman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Far as I can tell, it looks all in order. Just the one package version print to check on. Were some of these added checks to ensure that we don't return an array of all 0's?

@@ -1,5 +1,5 @@
Package: CoGAPS
Version: 3.27.5
Version: 3.29.1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this version bump makes sense?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, Bioconductor is strict about versions: in x.y.z, y is always odd in devel and even in release. Current release is 28, so current devel must be 29. Although ir may be 29.0, will find out when pushing to Bioconductor.

dimalvovs and others added 2 commits September 15, 2025 20:37
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@dimalvovs
Copy link
Contributor Author

Far as I can tell, it looks all in order. Just the one package version print to check on. Were some of these added checks to ensure that we don't return an array of all 0's?

Yes, the added tests check for all 0's

@dimalvovs dimalvovs merged commit 0fb5c4f into master Sep 16, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants