Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ guidelines when contributing to Hermes.

## Deliverables Format

Workflows must clearly define their deliverables in a [standardised format](https://atlas.scilifelab.se/infrastructure/dataflow/workflow/files_delivery/).
Workflows must clearly define their deliverables in a [standardised format](https://atlas.scilifelab.se/infrastructure/data_management/dataflow/workflow/files_delivery/).

## Tags Format

Expand Down
11 changes: 11 additions & 0 deletions cg_hermes/config/nallo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
AnalysisTags,
BioinfoToolsTags,
FamilyTags,
InputFileTags,
MipTags,
NalloTags,
NextflowTags,
Expand Down Expand Up @@ -400,6 +401,16 @@
"tags": [NextflowTags.SAMPLESHEET],
"used_by": [UsageTags.CG, UsageTags.LONG_TERM_STORAGE],
},
frozenset({"rank-model-snv"}): {
"is_mandatory": True,
"tags": [InputFileTags.RANK_MODEL_SNV],
"used_by": [UsageTags.SCOUT, UsageTags.LONG_TERM_STORAGE],
},
frozenset({"rank-model-sv"}): {
"is_mandatory": True,
"tags": [InputFileTags.RANK_MODEL_SV],
"used_by": [UsageTags.SCOUT, UsageTags.LONG_TERM_STORAGE],
},
}

NALLO_TAGS = {**NALLO_COMMON_TAGS, **NEXTFLOW_TAGS}
13 changes: 12 additions & 1 deletion cg_hermes/config/raredisease.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
AnalysisTags,
BioinfoToolsTags,
FamilyTags,
InputFileTags,
MipTags,
NextflowTags,
QCTags,
RarediseaseTags,
ReportTags,
VariantTags,
UsageTags,
VariantTags,
)

RAREDISEASE_COMMON_TAGS = {
Expand Down Expand Up @@ -344,6 +345,16 @@
"is_mandatory": True,
"used_by": [UsageTags.CLINICAL_DELIVERY, UsageTags.LONG_TERM_STORAGE],
},
frozenset({"rank-model-snv"}): {
"is_mandatory": True,
"tags": [InputFileTags.RANK_MODEL_SNV],
"used_by": [UsageTags.SCOUT, UsageTags.LONG_TERM_STORAGE],
},
frozenset({"rank-model-sv"}): {
"is_mandatory": True,
"tags": [InputFileTags.RANK_MODEL_SV],
"used_by": [UsageTags.SCOUT, UsageTags.LONG_TERM_STORAGE],
},
}

RAREDISEASE_TAGS = {**RAREDISEASE_COMMON_TAGS, **NEXTFLOW_TAGS}
18 changes: 18 additions & 0 deletions cg_hermes/constants/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,23 @@ def description(self) -> str:
return descriptions.get(self, "Description not available")


class InputFileTags(StrEnum):
RANK_MODEL_SNV = "rank-model-snv"
RANK_MODEL_SV = "rank-model-sv"

@classmethod
def name(cls) -> str:
return "Input File Tags"

@property
def description(self) -> str:
descriptions: dict[InputFileTags, str] = {
self.RANK_MODEL_SNV: "Rank model for SNV prioritization",
self.RANK_MODEL_SV: "Rank model for SV prioritization",
}
return descriptions.get(self, "Description not available")


class MipTags(StrEnum):
EXE_VER: str = "exe-ver"
MIP_ANALYSE: str = "mip-analyse"
Expand Down Expand Up @@ -819,6 +836,7 @@ class UsageTags(StrEnum):
AnalysisTags,
BioinfoToolsTags,
FamilyTags,
InputFileTags,
QCTags,
RawDataTags,
ReportTags,
Expand Down
163 changes: 83 additions & 80 deletions docs/nallo_map.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/raredisease_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
| ped_check, peddy | True | peddy, ped-check | audit, scout, clinical-delivery |
| sex_check, peddy | True | peddy, sex-check | audit, scout, clinical-delivery |
| pedigree_fam, pedigree | True | pedigree | scout |
| rank_model_snv, rank_and_filter | False | rank-model-snv | scout |
| rank_model_sv, rank_and_filter | False | rank-model-sv | scout |
| rhocallviz, annotate_snv | False | rhocall-viz | scout |
| annotate_snv_mt, haplogrep | False | haplogrep | scout, clinical-delivery |
| chromograph_rhoviz, autozyg | False | chromograph, autozyg | scout |
Expand Down
10 changes: 10 additions & 0 deletions tests/fixtures/nallo/case_id_deliverables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -630,3 +630,13 @@ files:
path: PATHTOCASE/CASEID_metrics_deliverables.yaml
step: qc-metrics
tag: qc-metrics
- format: ini
id: CASEID
path: PATHTOCASE/grch38_rank_model_snvs_-v1.0-.ini
step: rank-model-snv
tag: rank-model-snv
- format: ini
id: CASEID
path: PATHTOCASE/grch38_rank_model_svs_-v1.0-.ini
step: rank-model-sv
tag: rank-model-sv
10 changes: 10 additions & 0 deletions tests/fixtures/raredisease/case_id_deliverables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -830,3 +830,13 @@ files:
path: PATHTOCASE/manifest.json
step: manifest
tag: manifest
- format: ini
id: CASEID
path: PATHTOCASE/grch38_rank_model_-v0.4-.ini
step: rank-model-snv
tag: rank-model-snv
- format: ini
id: CASEID
path: PATHTOCASE/grch38_sv_rank_model_-v0.2-.ini
step: rank-model-sv
tag: rank-model-sv
Loading