Skip to content

Commit

Permalink
Simplify rnafusion tags (#3526)
Browse files Browse the repository at this point in the history
### Added
- Raredisease protected tags
### Changed
- Rnafusion hermes defined clinical-delivery tags
  • Loading branch information
ivadym authored Aug 7, 2024
1 parent ac4247e commit 9a6f218
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 44 deletions.
44 changes: 11 additions & 33 deletions cg/constants/delivery.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,29 +150,7 @@
{"vcf", "vcf-report", "fohm-delivery"},
]

RNAFUSION_ANALYSIS_CASE_TAGS: list[set[str]] = [
{AnalysisTag.MULTIQC_HTML, AnalysisTag.RNA},
{HK_DELIVERY_REPORT_TAG},
]

RNAFUSION_ANALYSIS_SAMPLE_TAGS: list[set[str]] = [
{AlignmentFileTag.CRAM},
{AlignmentFileTag.CRAM_INDEX},
{AnalysisTag.FUSION, AnalysisTag.ARRIBA},
{AnalysisTag.FUSION, AnalysisTag.STARFUSION},
{AnalysisTag.FUSION, AnalysisTag.FUSIONCATCHER},
{AnalysisTag.FUSIONCATCHER_SUMMARY},
{AnalysisTag.FUSIONINSPECTOR},
{AnalysisTag.FUSIONREPORT, AnalysisTag.RESEARCH},
{AnalysisTag.FUSIONINSPECTOR_HTML, AnalysisTag.RESEARCH},
{AnalysisTag.ARRIBA_VISUALIZATION, AnalysisTag.RESEARCH},
{AnalysisTag.VCF_FUSION},
{AnalysisTag.GENE_COUNTS},
]

NF_ANALYSIS_CASE_TAGS: list[set[str]] = [{HermesFileTag.CLINICAL_DELIVERY}]

NF_ANALYSIS_SAMPLE_TAGS: list[set[str]] = [{HermesFileTag.CLINICAL_DELIVERY}]
CLINICAL_DELIVERY_TAGS: list[set[str]] = [{HermesFileTag.CLINICAL_DELIVERY}]

PIPELINE_ANALYSIS_TAG_MAP: dict[Workflow, dict] = {
Workflow.BALSAMIC: {
Expand Down Expand Up @@ -207,21 +185,21 @@
"case_tags": MUTANT_ANALYSIS_CASE_TAGS,
"sample_tags": MUTANT_ANALYSIS_SAMPLE_TAGS,
},
Workflow.RNAFUSION: {
"case_tags": RNAFUSION_ANALYSIS_CASE_TAGS,
"sample_tags": RNAFUSION_ANALYSIS_SAMPLE_TAGS,
},
Workflow.RAREDISEASE: {
"case_tags": NF_ANALYSIS_CASE_TAGS,
"sample_tags": NF_ANALYSIS_SAMPLE_TAGS,
"case_tags": CLINICAL_DELIVERY_TAGS,
"sample_tags": CLINICAL_DELIVERY_TAGS,
},
Workflow.RNAFUSION: {
"case_tags": CLINICAL_DELIVERY_TAGS,
"sample_tags": CLINICAL_DELIVERY_TAGS,
},
Workflow.TAXPROFILER: {
"case_tags": NF_ANALYSIS_CASE_TAGS,
"sample_tags": NF_ANALYSIS_SAMPLE_TAGS,
"case_tags": CLINICAL_DELIVERY_TAGS,
"sample_tags": CLINICAL_DELIVERY_TAGS,
},
Workflow.TOMTE: {
"case_tags": NF_ANALYSIS_CASE_TAGS,
"sample_tags": NF_ANALYSIS_SAMPLE_TAGS,
"case_tags": CLINICAL_DELIVERY_TAGS,
"sample_tags": CLINICAL_DELIVERY_TAGS,
},
}

Expand Down
26 changes: 15 additions & 11 deletions cg/constants/housekeeper_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,18 +202,22 @@ class BalsamicProtectedTags:
["gisaid-log"],
["gisaid-csv"],
],
Workflow.RAREDISEASE: [
[HermesFileTag.LONG_TERM_STORAGE],
],
Workflow.RNAFUSION: [
[AnalysisTag.FUSION, AnalysisTag.ARRIBA],
[AnalysisTag.FUSION, AnalysisTag.STARFUSION],
[AnalysisTag.FUSION, AnalysisTag.FUSIONCATCHER],
[AnalysisTag.FUSIONINSPECTOR],
[AnalysisTag.FUSIONREPORT, AnalysisTag.RESEARCH],
[AnalysisTag.FUSIONINSPECTOR_HTML, AnalysisTag.RESEARCH],
[AnalysisTag.ARRIBA_VISUALIZATION, AnalysisTag.RESEARCH],
[AnalysisTag.MULTIQC_HTML, AnalysisTag.RNA],
[HK_DELIVERY_REPORT_TAG],
[AnalysisTag.VCF_FUSION],
[AnalysisTag.GENE_COUNTS],
[HermesFileTag.LONG_TERM_STORAGE],
[AnalysisTag.FUSION, AnalysisTag.ARRIBA], # legacy
[AnalysisTag.FUSION, AnalysisTag.STARFUSION], # legacy
[AnalysisTag.FUSION, AnalysisTag.FUSIONCATCHER], # legacy
[AnalysisTag.FUSIONINSPECTOR], # legacy
[AnalysisTag.FUSIONREPORT, AnalysisTag.RESEARCH], # legacy
[AnalysisTag.FUSIONINSPECTOR_HTML, AnalysisTag.RESEARCH], # legacy
[AnalysisTag.ARRIBA_VISUALIZATION, AnalysisTag.RESEARCH], # legacy
[AnalysisTag.MULTIQC_HTML, AnalysisTag.RNA], # legacy
[HK_DELIVERY_REPORT_TAG], # legacy
[AnalysisTag.VCF_FUSION], # legacy
[AnalysisTag.GENE_COUNTS], # legacy
],
Workflow.TAXPROFILER: [
[HermesFileTag.LONG_TERM_STORAGE],
Expand Down

0 comments on commit 9a6f218

Please sign in to comment.