Skip to content

Add gcta/addgrms module#10995

Open
lyh970817 wants to merge 3 commits into
nf-core:masterfrom
lyh970817:modules/gcta-addgrms-create
Open

Add gcta/addgrms module#10995
lyh970817 wants to merge 3 commits into
nf-core:masterfrom
lyh970817:modules/gcta-addgrms-create

Conversation

@lyh970817
Copy link
Copy Markdown
Contributor

@lyh970817 lyh970817 commented Mar 21, 2026

This PR adds the gcta/addgrms module, which combines multiple GRMs listed in an MGRM manifest into a single dense GRM.

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Broadcast software version numbers to topic: versions - See version_topics
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • nf-core modules test gcta/addgrms --profile docker
  • nf-core modules test gcta/addgrms --profile singularity
  • nf-core modules test gcta/addgrms --profile conda

@lyh970817 lyh970817 mentioned this pull request Mar 21, 2026
17 tasks
@lyh970817 lyh970817 force-pushed the modules/gcta-addgrms-create branch from e685b3b to c6d78e2 Compare March 21, 2026 12:52
@famosab
Copy link
Copy Markdown
Contributor

famosab commented Apr 8, 2026

Duplicate of #8140 ? @lyh970817 can you check for overlap and if this is a duplicate close the older PR?

@famosab famosab mentioned this pull request Apr 8, 2026
17 tasks
@lyh970817 lyh970817 force-pushed the modules/gcta-addgrms-create branch from 6778e85 to c3226e0 Compare May 16, 2026 11:01
Comment thread modules/nf-core/gcta/addgrms/main.nf Outdated
--make-grm \\
--out ${prefix} \\
--thread-num ${task.cpus} \\
${extra_args}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
${extra_args}
${args}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Kept ${args} as the final command line in the cleanup commit so the script stays aligned with nf-core module style.

Comment thread modules/nf-core/gcta/addgrms/main.nf Outdated
def prefix = task.ext.prefix ?: "${meta.id}"

"""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed the extra blank spacer line in 9ecb62d2c.

Comment thread modules/nf-core/gcta/addgrms/main.nf Outdated
task.ext.when == null || task.ext.when

script:
def extra_args = task.ext.args ?: ''
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
def extra_args = task.ext.args ?: ''
def args = task.ext.args ?: ''

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated in 9ecb62d2c by renaming extra_args to args to match the module convention.

Comment thread modules/nf-core/gcta/addgrms/main.nf Outdated
tag "${meta.id}"
label 'process_medium'
conda "${moduleDir}/environment.yml"
container "${workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you swap this to the more recent singularity or apptainer syntax (see other modules)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 0f36baf.

@lyh970817 lyh970817 force-pushed the modules/gcta-addgrms-create branch from 363708f to 4191fb4 Compare May 21, 2026 13:39
@lyh970817 lyh970817 force-pushed the modules/gcta-addgrms-create branch from 4191fb4 to 5962c65 Compare May 23, 2026 08:22
@lyh970817 lyh970817 force-pushed the modules/gcta-addgrms-create branch from 339f30a to 9ecb62d Compare May 23, 2026 15:53
@lyh970817 lyh970817 requested a review from SPPearce May 24, 2026 12:29
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.

3 participants