Skip to content

Profiles - #88

Open
yocra3 wants to merge 7 commits into
masterfrom
profiles
Open

Profiles#88
yocra3 wants to merge 7 commits into
masterfrom
profiles

Conversation

@yocra3

@yocra3 yocra3 commented Nov 6, 2025

Copy link
Copy Markdown
Collaborator

Is there an existing PR for this?

  • I have searched for existing PRs

Types of changes:

  • Bug fix (change which fixes an identified problem)
  • "New" feature (change which adds or improves existing functionality)

Description

He definido el perfil de TBLAB. He tenido que hacer algunos cambios al config. También he añadido la documentación.

Checklist:

Please verify that you have completed the following:

  • Guidelines adherence: my changes follow the guidelines of this project.
  • Documentation update: I have made corresponding changes to the documentation, if necessary.
  • Test inclusion: I have added tests that prove my code is effective and works.
  • New and existing unit tests pass locally with my changes.

@yocra3

yocra3 commented Nov 6, 2025

Copy link
Copy Markdown
Collaborator Author

@yolandabq te he añadido de revisora. Echale un vistazo sobretodo a la documentación. También te pediría si puedes ejecutar alguna prueba tu en tu máquina, pasándole los paths a parte.

@yocra3
yocra3 requested review from Copilot and removed request for pedro-garridor November 6, 2025 11:30

Copilot AI left a comment

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.

Pull Request Overview

This PR adds support for CIBERER group-specific profiles to the pipeline, with an initial implementation of the tblab profile. The changes enable different CIBERER research groups to run the pipeline with their institution-specific annotation databases and configurations.

  • Adds a new tblab profile configuration with comprehensive annotation database parameters
  • Provides template configuration files and documentation for setting up the tblab profile
  • Fixes a logic error in the single_end detection for FASTQ files
  • Updates documentation links to use the correct repository name

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
subworkflows/local/input_check.nf Corrects the logic for determining single-end vs paired-end sequencing data
nextflow.config Includes the new CIBERER groups configuration file
main.nf Adds conditional initialization for tblab profile-specific variables
docs/tblab_parameters.md Documents all parameters required for the tblab profile
docs/annotation.md Updates repository URL in documentation link
conf/CIBERER_templates/tblab_parameters.config Provides template configuration file for tblab users
conf/CIBERER_groups.config Implements the tblab profile with annotation database paths and VEP settings
README.md Adds reference to CIBERER group profiles documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread main.nf Outdated

// Define extra variables if using CIBERER groups profiles
if (workflow.profile.contains('tblab')) {
def extra_files = params.extra_files()

Copilot AI Nov 6, 2025

Copy link

Choose a reason for hiding this comment

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

The variable extra_files is assigned but never used within this conditional block or elsewhere in the visible code. This creates dead code that serves no purpose. Either remove this declaration if it's not needed, or if it's intended for future use, add a comment explaining its purpose.

Suggested change
def extra_files = params.extra_files()
// (removed unused assignment of extra_files)

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Esta línea para qué es?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

creo que era para evaluar el contenido de params.extra_files(). Si no recuerdo mal, hasta que no se ejecutaba algo así, no se le asignaba el valor a las variables. Esto me permitía controlar el punto donde se definían los valores.

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread docs/tblab_parameters.md Outdated

## tblab Profile

This profile runs the pipeline with the annotation databases and resources used by the Translational Bioinformatics Lab (tblab) at the Fundación Jiménez Díaz (FJD) (date 06/11/2025). We have included a [template](https://github.com/CIBERER/nf-CBRA-snvs/blob/conf/CIBERER_templates/tblab_parameters.config) with the required annotation files used to run this profile.

Copilot AI Nov 6, 2025

Copy link

Choose a reason for hiding this comment

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

The GitHub URL is malformed - it's missing the branch name between 'blob' and the path. The URL should be something like https://github.com/CIBERER/nf-CBRA-snvs/blob/main/conf/CIBERER_templates/tblab_parameters.config with an actual branch name (e.g., 'main', 'master', 'dev') inserted after 'blob/'.

Suggested change
This profile runs the pipeline with the annotation databases and resources used by the Translational Bioinformatics Lab (tblab) at the Fundación Jiménez Díaz (FJD) (date 06/11/2025). We have included a [template](https://github.com/CIBERER/nf-CBRA-snvs/blob/conf/CIBERER_templates/tblab_parameters.config) with the required annotation files used to run this profile.
This profile runs the pipeline with the annotation databases and resources used by the Translational Bioinformatics Lab (tblab) at the Fundación Jiménez Díaz (FJD) (date 06/11/2025). We have included a [template](https://github.com/CIBERER/nf-CBRA-snvs/blob/main/conf/CIBERER_templates/tblab_parameters.config) with the required annotation files used to run this profile.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

El path no funciona.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Esto solo funcionará cuando esté en el master. De todas formas, el path estaba mal y lo he actualizado como decía copilot.

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

// dbscSNV
dbscSNV = ""
dbscSNV_tbi = { -> "${params.dbscSNV}.tbi" }

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Las flechitas (->) son para algo??

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sí. Todo esto es para permitir pasar los paths en otro nextflow.config. En este caso, dbscSNV_tbi lo define, si no se le pasa aparte, como dbscSNV + .tbi

yolandabq and others added 3 commits March 17, 2026 15:41
Updated the institution name from 'Fundación Jiménez Díaz' to 'Instituto de Investigación Sanitaria Fundación Jiménez Díaz'.
Correct path for future configuration
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