Skip to content

Commit eead52a

Browse files
committed
Add paraphrase outputs, and change paraphase jsons to store original output per sample
1 parent 7f32a63 commit eead52a

4 files changed

Lines changed: 26 additions & 2 deletions

File tree

cg_hermes/config/nallo.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,16 @@
200200
"is_mandatory": True,
201201
"used_by": [UsageTags.CLINICAL_DELIVERY, UsageTags.LONG_TERM_STORAGE],
202202
},
203+
frozenset(["paraphrase", "json"]): {
204+
"tags": [BioinfoToolsTags.PARAPHRASE, ReportTags.JSON],
205+
"is_mandatory": False,
206+
"used_by": [UsageTags.CLINICAL_DELIVERY, UsageTags.LONG_TERM_STORAGE],
207+
},
208+
frozenset(["paraphrase", "tsv"]): {
209+
"tags": [BioinfoToolsTags.PARAPHRASE, ReportTags.TSV],
210+
"is_mandatory": False,
211+
"used_by": [UsageTags.CLINICAL_DELIVERY, UsageTags.LONG_TERM_STORAGE],
212+
},
203213
frozenset(["paraphase", "vcf"]): {
204214
"tags": [BioinfoToolsTags.PARAPHASE, VariantTags.VCF],
205215
"is_mandatory": False,

cg_hermes/constants/tags.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ class BioinfoToolsTags(StrEnum):
429429
MODKIT_PILEUP: str = "modkit-pileup"
430430
NEXTCLADE: str = "nextclade"
431431
PARAPHASE: str = "paraphase"
432+
PARAPHRASE: str = "paraphrase"
432433
PEDDY: str = "peddy"
433434
PICARD: str = "picard"
434435
PIZZLY: str = "pizzly"
@@ -489,6 +490,7 @@ def description(self) -> str:
489490
self.MODKIT_PILEUP: "Modkit pileup tool output",
490491
self.NEXTCLADE: "Viral genome clade assignment",
491492
self.PARAPHASE: "Paraphase tool output",
493+
self.PARAPHRASE: "Paraphrase annotated paraphase JSONs",
492494
self.PEDDY: "Tool to check pedigree and ancestral relations",
493495
self.PICARD: "Picard set of bioinformatic tools",
494496
self.PIZZLY: "Fusion caller",

docs/nallo_map.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
| paraphase | True | bam, paraphase | clinical-delivery, long-term-storage |
3737
| paraphase_index, paraphase | True | bam-index, paraphase | clinical-delivery, long-term-storage |
3838
| json, paraphase | True | paraphase, json | clinical-delivery, long-term-storage |
39+
| json, paraphrase | False | paraphrase, json | clinical-delivery, long-term-storage |
40+
| tsv, paraphrase | False | paraphrase, tsv | clinical-delivery, long-term-storage |
3941
| vcf, paraphase | False | paraphase, vcf | clinical-delivery, long-term-storage |
4042
| vcf_index, paraphase | False | paraphase, vcf-index | clinical-delivery, long-term-storage |
4143
| sambamba_depth | True | coverage, sambamba_depth | cg, long-term-storage |

tests/fixtures/nallo/case_id_deliverables.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,10 +426,20 @@ files:
426426
step: paraphase
427427
tag: paraphase_index
428428
- format: json
429-
id: CASEID
430-
path: PATHTOCASE/paraphase/family/CASEID/CASEID_merged.json
429+
id: SAMPLEID
430+
path: PATHTOCASE/paraphase/sample/SAMPLEID/SAMPLEID.paraphase.json
431431
step: paraphase
432+
tag: paraphase
433+
- format: json
434+
id: CASEID
435+
path: PATHTOCASE/paraphase/family/CASEID/CASEID_annotated.json
436+
step: paraphrase
432437
tag: json
438+
- format: tsv
439+
id: CASEID
440+
path: PATHTOCASE/paraphase/family/CASEID/CASEID_annotated.tsv
441+
step: paraphrase
442+
tag: tsv
433443
- format: vcf
434444
id: CASEID
435445
path: PATHTOCASE/paraphase/family/CASEID/CASEID_paraphase_merged.vcf.gz

0 commit comments

Comments
 (0)