Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add suport for sample sheets and params file #4255

Draft
wants to merge 7 commits into
base: dev-start-pipelines
Choose a base branch
from

Conversation

diitaz93
Copy link
Contributor

@diitaz93 diitaz93 commented Feb 28, 2025

Description

Alternate version of #4260

Added

Changed

Fixed

How to prepare for test

  • Ssh to relevant server (depending on type of change)
  • Use stage: us
  • Paxa the environment: paxa
  • Install on stage (example for Hasta):
    bash /home/proj/production/servers/resources/hasta.scilifelab.se/update-tool-stage.sh -e S_cg -t cg -b [THIS-BRANCH-NAME] -a

How to test

  • Do ...

Expected test outcome

  • Check that ...
  • Take a screenshot and attach or copy/paste the output.

Review

  • Tests executed by
  • "Merge and deploy" approved by
    Thanks for filling in who performed the code review and the test!

This version is a

  • MAJOR - when you make incompatible API changes
  • MINOR - when you add functionality in a backwards compatible manner
  • PATCH - when you make backwards compatible bug fixes or documentation/instructions

Implementation Plan

  • Document in ...
  • Deploy this branch on ...
  • Inform to ...

@@ -55,6 +64,48 @@ def _create_nextflow_config(self, case_id: str, dry_run: bool = False) -> None:
write_content_to_file_or_stdout(content=content, file_path=file_path, dry_run=dry_run)
LOG.debug(f"Created nextflow config file {file_path.as_posix()} successfully")

def _create_params_file(self, case_id: str, dry_run: bool = False) -> None:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

most of the new code in here is copied from the AnalysisAPI

@@ -21,3 +23,33 @@ def get_slurm_qos_for_case(case: Case) -> str:
if are_all_samples_control(case=case):
return SlurmQos.EXPRESS
return Priority.priority_to_slurm_qos().get(case.priority)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

copied from analysisAPI too

@diitaz93 diitaz93 changed the title add first structure (#4226) add suport for sample sheets and params file Mar 3, 2025
Copy link

sonarqubecloud bot commented Mar 3, 2025

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.

1 participant