mehari 0.35.0

Variant effect prediction all in Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
openapi: 3.1.0
info:
  title: mehari
  description: Variant effect prediction all in Rust
  contact:
    name: Manuel Holtgrewe
    email: manuel.holtgrewe@bih-charite.de
  license:
    name: MIT
    identifier: MIT
  version: 0.32.0
paths:
  /api/v1/genes/transcripts:
    get:
      tags:
      - gene_txs
      summary: Query for transcripts of a gene.
      operationId: genesTranscriptsList
      parameters:
      - name: hgnc_id
        in: query
        description: HGNC gene ID.
        required: true
        schema:
          type: string
      - name: genome_build
        in: query
        description: Genome build.
        required: true
        schema:
          $ref: '#/components/schemas/Assembly'
      - name: page_size
        in: query
        description: Page size.
        required: false
        schema:
          type:
          - integer
          - 'null'
          format: int32
      - name: next_page_token
        in: query
        description: Next page token.
        required: false
        schema:
          type:
          - string
          - 'null'
      responses:
        '200':
          description: Transcripts for the selected gene.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenesTranscriptsListResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomError'
  /api/v1/seqvars/clinvar:
    get:
      tags:
      - seqvars_clinvar
      summary: Query for ClinVar information of a variant.
      operationId: seqvarsClinvar
      parameters:
      - name: genome_release
        in: query
        description: The assembly.
        required: true
        schema:
          $ref: '#/components/schemas/GenomeRelease'
      - name: chromosome
        in: query
        description: SPDI sequence.
        required: true
        schema:
          type: string
      - name: position
        in: query
        description: SPDI position.
        required: true
        schema:
          type: integer
          format: int32
          minimum: 0
      - name: reference
        in: query
        description: SPDI deletion.
        required: true
        schema:
          type: string
      - name: alternative
        in: query
        description: SPDI insertion.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Clinvar information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClinvarResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomError'
  /api/v1/seqvars/csq:
    get:
      tags:
      - seqvars_csq
      summary: Query for consequence of a variant.
      operationId: seqvarsCsq
      parameters:
      - name: genome_release
        in: query
        description: The assembly.
        required: true
        schema:
          $ref: '#/components/schemas/GenomeRelease'
      - name: chromosome
        in: query
        description: SPDI sequence.
        required: true
        schema:
          type: string
      - name: position
        in: query
        description: SPDI position.
        required: true
        schema:
          type: integer
          format: int32
          minimum: 0
      - name: reference
        in: query
        description: SPDI deletion.
        required: true
        schema:
          type: string
      - name: alternative
        in: query
        description: SPDI insertion.
        required: true
        schema:
          type: string
      - name: hgnc_id
        in: query
        description: Optionally, the HGNC ID of the gene to limit to.
        required: false
        schema:
          type:
          - string
          - 'null'
      responses:
        '200':
          description: Seqvars consequence information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SeqvarsCsqResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomError'
  /api/v1/seqvars/frequency:
    get:
      tags:
      - seqvars_frequencies
      summary: Query for gnomAD frequencies of a variant.
      operationId: seqvarsFrequency
      parameters:
      - name: genome_release
        in: query
        description: The assembly.
        required: true
        schema:
          $ref: '#/components/schemas/GenomeRelease'
      - name: chromosome
        in: query
        description: SPDI sequence.
        required: true
        schema:
          type: string
      - name: position
        in: query
        description: SPDI position.
        required: true
        schema:
          type: integer
          format: int32
          minimum: 0
      - name: reference
        in: query
        description: SPDI deletion.
        required: true
        schema:
          type: string
      - name: alternative
        in: query
        description: SPDI insertion.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Frequency information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FrequencyResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomError'
  /api/v1/strucvars/csq:
    get:
      tags:
      - strucvars_csq
      summary: Query for consequence of a variant.
      operationId: strucvarsCsq
      parameters:
      - name: genome_release
        in: query
        description: The assembly.
        required: true
        schema:
          $ref: '#/components/schemas/GenomeRelease'
      - name: chromosome
        in: query
        description: Chromosome.
        required: true
        schema:
          type: string
      - name: start
        in: query
        description: 1-based start position.
        required: true
        schema:
          type: integer
          format: int32
      - name: stop
        in: query
        description: 1-based stop position, ignored for INS.
        required: false
        schema:
          type:
          - integer
          - 'null'
          format: int32
      - name: sv_type
        in: query
        description: The variant type to use for annotation.
        required: true
        schema:
          $ref: '#/components/schemas/StrucvarsSvType'
      responses:
        '200':
          description: Strucvars consequence information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StrucvarsCsqResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomError'
  /api/v1/versionsInfo:
    get:
      tags:
      - versions
      summary: Query for consequence of a variant.
      operationId: versionsInfo
      responses:
        '200':
          description: Version information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VersionsInfoResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomError'
components:
  schemas:
    Assembly:
      type: string
      description: |-
        Assembly to be passed on the command line.

        Copy from annonars with extension to derive `utoipa::ToSchema`.
      enum:
      - grch37
      - grch38
    AutosomalResultEntry:
      type: object
      required:
      - gnomad_exomes_an
      - gnomad_exomes_hom
      - gnomad_exomes_het
      - gnomad_genomes_an
      - gnomad_genomes_hom
      - gnomad_genomes_het
      properties:
        gnomad_exomes_an:
          type: integer
          format: int32
          minimum: 0
        gnomad_exomes_hom:
          type: integer
          format: int32
          minimum: 0
        gnomad_exomes_het:
          type: integer
          format: int32
          minimum: 0
        gnomad_genomes_an:
          type: integer
          format: int32
          minimum: 0
        gnomad_genomes_hom:
          type: integer
          format: int32
          minimum: 0
        gnomad_genomes_het:
          type: integer
          format: int32
          minimum: 0
    ClinvarQuery:
      type: object
      description: Query parameters of the `/api/v1/seqvars/clinvar` endpoint.
      required:
      - genome_release
      - chromosome
      - position
      - reference
      - alternative
      properties:
        genome_release:
          $ref: '#/components/schemas/GenomeRelease'
          description: The assembly.
        chromosome:
          type: string
          description: SPDI sequence.
        position:
          type: integer
          format: int32
          description: SPDI position.
          minimum: 0
        reference:
          type: string
          description: SPDI deletion.
        alternative:
          type: string
          description: SPDI insertion.
    ClinvarResponse:
      type: object
      description: Response of the `/api/v1/seqvars/clinvar` endpoint.
      required:
      - version
      - query
      - result
      properties:
        version:
          $ref: '#/components/schemas/VersionsInfoResponse'
          description: Version information.
        query:
          $ref: '#/components/schemas/ClinvarQuery'
          description: The original query records.
        result:
          type: array
          items:
            $ref: '#/components/schemas/ClinvarResultEntry'
          description: The resulting records for the scored genes.
    ClinvarResultEntry:
      type: object
      description: One entry in `ClinvarResponse`.
      required:
      - clinvar_vcv
      - clinvar_germline_classification
      properties:
        clinvar_vcv:
          type: array
          items:
            type: string
        clinvar_germline_classification:
          type: array
          items:
            type: string
    Consequence:
      type: string
      description: Putative impact.
      enum:
      - transcript_ablation
      - exon_loss_variant
      - splice_acceptor_variant
      - splice_donor_variant
      - stop_gained
      - frameshift_variant
      - frameshift_elongation
      - frameshift_truncation
      - stop_lost
      - start_lost
      - transcript_amplification
      - feature_elongation
      - feature_truncation
      - disruptive_inframe_insertion
      - disruptive_inframe_deletion
      - conservative_inframe_insertion
      - conservative_inframe_deletion
      - missense_variant
      - rare_amino_acid_variant
      - protein_altering_variant
      - splice_donor_5th_base_variant
      - splice_region_variant
      - exonic_splice_region_variant
      - splice_donor_region_variant
      - splice_polypyrimidine_tract_variant
      - start_retained_variant
      - stop_retained_variant
      - synonymous_variant
      - coding_sequence_variant
      - mature_miRNA_variant
      - 5_prime_UTR_exon_variant
      - 5_prime_UTR_intron_variant
      - 3_prime_UTR_exon_variant
      - 3_prime_UTR_intron_variant
      - non_coding_transcript_exon_variant
      - non_coding_transcript_intron_variant
      - coding_transcript_intron_variant
      - upstream_gene_variant
      - downstream_gene_variant
      - TFBS_ablation
      - TFBS_amplification
      - TF_binding_site_variant
      - regulatory_region_ablation
      - regulatory_region_amplification
      - regulatory_region_variant
      - intergenic_variant
      - intron_variant
      - gene_variant
    CustomError:
      type: object
      required:
      - err
      properties:
        err:
          type: string
    DataVersionEntry:
      type: object
      description: Specification of data version for a given genome build.
      required:
      - genome_build
      - version_cdot
      properties:
        genome_build:
          $ref: '#/components/schemas/Assembly'
          description: Assembly for which the data version is specified.
        version_refseq:
          type:
          - string
          - 'null'
          description: Version of the RefSeq database, if any.
        version_ensembl:
          type:
          - string
          - 'null'
          description: Version of the Ensembl database, if any.
        version_cdot:
          type: string
          description: Version of cdot used.
    ExonAlignment:
      type: object
      description: Store the alignment of one exon to the reference.
      required:
      - alt_start_i
      - alt_end_i
      - ord
      - cigar
      properties:
        alt_start_i:
          type: integer
          format: int32
          description: Start position on reference.
        alt_end_i:
          type: integer
          format: int32
          description: End position on reference.
        ord:
          type: integer
          format: int32
          description: Exon number.
        alt_cds_start_i:
          type:
          - integer
          - 'null'
          format: int32
          description: CDS start coordinate.
        alt_cds_end_i:
          type:
          - integer
          - 'null'
          format: int32
          description: CDS end coordinate.
        cigar:
          type: string
          description: CIGAR string of alignment, empty indicates full matches.
    FeatureBiotype:
      type: string
      description: Encode feature biotype.
      enum:
      - coding
      - noncoding
      - mane_select
      - mane_plus_clinical
    FeatureType:
      oneOf:
      - type: object
        required:
        - so_term
        properties:
          so_term:
            type: object
            required:
            - term
            properties:
              term:
                $ref: '#/components/schemas/SoFeature'
      - type: object
        required:
        - custom
        properties:
          custom:
            type: object
            required:
            - value
            properties:
              value:
                type: string
      description: Enum for `AnnField::feature_type`.
    FrequencyQuery:
      type: object
      description: Query parameters of the `/api/v1/seqvars/frequency` endpoint.
      required:
      - genome_release
      - chromosome
      - position
      - reference
      - alternative
      properties:
        genome_release:
          $ref: '#/components/schemas/GenomeRelease'
          description: The assembly.
        chromosome:
          type: string
          description: SPDI sequence.
        position:
          type: integer
          format: int32
          description: SPDI position.
          minimum: 0
        reference:
          type: string
          description: SPDI deletion.
        alternative:
          type: string
          description: SPDI insertion.
    FrequencyResponse:
      type: object
      description: Response of the `/api/v1/seqvars/frequency` endpoint.
      required:
      - version
      - query
      - result
      properties:
        version:
          $ref: '#/components/schemas/VersionsInfoResponse'
          description: Version information.
        query:
          $ref: '#/components/schemas/FrequencyQuery'
          description: The original query records.
        result:
          type: array
          items:
            $ref: '#/components/schemas/FrequencyResultEntry'
          description: The resulting records for the scored genes.
    FrequencyResultEntry:
      oneOf:
      - type: object
        required:
        - Autosomal
        properties:
          Autosomal:
            $ref: '#/components/schemas/AutosomalResultEntry'
      - type: object
        required:
        - Gonosomal
        properties:
          Gonosomal:
            $ref: '#/components/schemas/GonosomalResultEntry'
      - type: object
        required:
        - Mitochondrial
        properties:
          Mitochondrial:
            $ref: '#/components/schemas/MitochondrialResultEntry'
      description: One entry in `FrequencyResponse`.
    GenesTranscriptsListQuery:
      type: object
      description: Query arguments for the `/api/v1/genes/transcripts` endpoint.
      required:
      - hgnc_id
      - genome_build
      properties:
        hgnc_id:
          type: string
          description: HGNC gene ID.
        genome_build:
          $ref: '#/components/schemas/Assembly'
          description: Genome build.
        page_size:
          type:
          - integer
          - 'null'
          format: int32
          description: Page size.
        next_page_token:
          type:
          - string
          - 'null'
          description: Next page token.
    GenesTranscriptsListResponse:
      type: object
      description: Response of the `/api/v1/genes/transcripts` endpoint.
      required:
      - transcripts
      properties:
        transcripts:
          type: array
          items:
            $ref: '#/components/schemas/Transcript'
          description: The transcripts for the gene.
        next_page_token:
          type:
          - string
          - 'null'
          description: The token to continue from a previous query.
    GenomeAlignment:
      type: object
      description: Store information about a transcript aligning to a genome.
      required:
      - genome_build
      - contig
      - strand
      - exons
      properties:
        genome_build:
          $ref: '#/components/schemas/Assembly'
          description: The genome build identifier.
        contig:
          type: string
          description: Accession of the contig sequence.
        cds_start:
          type:
          - integer
          - 'null'
          format: int32
          description: CDS end position, `-1` to indicate `None`.
        cds_end:
          type:
          - integer
          - 'null'
          format: int32
          description: CDS end position, `-1` to indicate `None`.
        strand:
          $ref: '#/components/schemas/Strand'
          description: The strand.
        exons:
          type: array
          items:
            $ref: '#/components/schemas/ExonAlignment'
          description: Exons of the alignment.
    GenomeRelease:
      type: string
      description: Select the genome release to use.
      enum:
      - grch37
      - grch38
    GonosomalResultEntry:
      type: object
      required:
      - gnomad_exomes_an
      - gnomad_exomes_hom
      - gnomad_exomes_het
      - gnomad_exomes_hemi
      - gnomad_genomes_an
      - gnomad_genomes_hom
      - gnomad_genomes_het
      - gnomad_genomes_hemi
      properties:
        gnomad_exomes_an:
          type: integer
          format: int32
          minimum: 0
        gnomad_exomes_hom:
          type: integer
          format: int32
          minimum: 0
        gnomad_exomes_het:
          type: integer
          format: int32
          minimum: 0
        gnomad_exomes_hemi:
          type: integer
          format: int32
          minimum: 0
        gnomad_genomes_an:
          type: integer
          format: int32
          minimum: 0
        gnomad_genomes_hom:
          type: integer
          format: int32
          minimum: 0
        gnomad_genomes_het:
          type: integer
          format: int32
          minimum: 0
        gnomad_genomes_hemi:
          type: integer
          format: int32
          minimum: 0
    Message:
      type: string
      description: A message to be used in `AnnField::messages`.
      enum:
      - error_chromosome_not_found
      - error_out_of_chromosome_range
      - warning_ref_does_not_match_genome
      - warning_sequence_not_available
      - warning_transcript_incomplete
      - warning_transcript_multiple_stop_codons
      - warning_transcripts_no_start_codon
      - info_realign_three_prime
      - info_compound_annotation
      - info_non_reference_annotation
    MitochondrialResultEntry:
      type: object
      required:
      - helix_an
      - helix_hom
      - helix_het
      - gnomad_genomes_an
      - gnomad_genomes_hom
      - gnomad_genomes_het
      properties:
        helix_an:
          type: integer
          format: int32
          minimum: 0
        helix_hom:
          type: integer
          format: int32
          minimum: 0
        helix_het:
          type: integer
          format: int32
          minimum: 0
        gnomad_genomes_an:
          type: integer
          format: int32
          minimum: 0
        gnomad_genomes_hom:
          type: integer
          format: int32
          minimum: 0
        gnomad_genomes_het:
          type: integer
          format: int32
          minimum: 0
    Pos:
      type: object
      description: Position, optionally with total length.
      required:
      - ord
      properties:
        ord:
          type: integer
          format: int32
        total:
          type:
          - integer
          - 'null'
          format: int32
    PutativeImpact:
      type: string
      description: Putative impact level.
      enum:
      - high
      - moderate
      - low
      - modifier
    Rank:
      type: object
      description: Encode exon/intron rank.
      required:
      - ord
      - total
      properties:
        ord:
          type: integer
          format: int32
        total:
          type: integer
          format: int32
    SeqvarsCsqQuery:
      type: object
      description: Query parameters of the `/api/v1/seqvars/csq` endpoint.
      required:
      - genome_release
      - chromosome
      - position
      - reference
      - alternative
      properties:
        genome_release:
          $ref: '#/components/schemas/GenomeRelease'
          description: The assembly.
        chromosome:
          type: string
          description: SPDI sequence.
        position:
          type: integer
          format: int32
          description: SPDI position.
          minimum: 0
        reference:
          type: string
          description: SPDI deletion.
        alternative:
          type: string
          description: SPDI insertion.
        hgnc_id:
          type:
          - string
          - 'null'
          description: Optionally, the HGNC ID of the gene to limit to.
    SeqvarsCsqResponse:
      type: object
      description: Response of the `/api/v1/seqvars/csq` endpoint.
      required:
      - version
      - query
      - result
      properties:
        version:
          $ref: '#/components/schemas/VersionsInfoResponse'
          description: Version information.
        query:
          $ref: '#/components/schemas/SeqvarsCsqQuery'
          description: The original query records.
        result:
          type: array
          items:
            $ref: '#/components/schemas/SeqvarsCsqResultEntry'
          description: The resulting records for the scored genes.
    SeqvarsCsqResultEntry:
      type: object
      description: One entry in `SeqvarsCsqResponse`.
      required:
      - consequences
      - putative_impact
      - gene_symbol
      - gene_id
      - feature_type
      - feature_id
      - feature_biotype
      - feature_tag
      - strand
      properties:
        consequences:
          type: array
          items:
            $ref: '#/components/schemas/Consequence'
          description: The consequences of the allele.
        putative_impact:
          $ref: '#/components/schemas/PutativeImpact'
          description: The putative impact.
        gene_symbol:
          type: string
          description: The gene symbol.
        gene_id:
          type: string
          description: The gene identifier.
        feature_type:
          $ref: '#/components/schemas/FeatureType'
          description: The feature type.
        feature_id:
          type: string
          description: The feature identifier.
        feature_biotype:
          $ref: '#/components/schemas/FeatureBiotype'
          description: The feature biotype.
        feature_tag:
          type: array
          items:
            $ref: '#/components/schemas/FeatureBiotype'
          description: The feature tags.
        rank:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Rank'
            description: The exon / intron rank.
        hgvs_g:
          type:
          - string
          - 'null'
          description: HGVS g. notation.
        hgvs_t:
          type:
          - string
          - 'null'
          description: HGVS c. notation.
        hgvs_p:
          type:
          - string
          - 'null'
          description: HGVS p. notation.
        tx_pos:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Pos'
            description: cDNA position.
        cds_pos:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Pos'
            description: CDS position.
        protein_pos:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/Pos'
            description: Protein position.
        distance:
          type:
          - integer
          - 'null'
          format: int32
          description: Distance to feature.
        strand:
          type: integer
          format: int32
          description: Strand of the alignment
        messages:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/Message'
          description: Optional list of warnings and error messages.
    SoFeature:
      type: string
      description: Sequence ontology feature.
      enum:
      - Transcript
    SoftwareVersions:
      type: object
      description: Software version specification.
      required:
      - mehari
      - hgvs_rs
      properties:
        mehari:
          type: string
          description: Version of `mehari`.
        hgvs_rs:
          type: string
          description: Version of the `hgvs` crate.
    Strand:
      type: string
      description: Enumeration for the two strands of the genome.
      enum:
      - unknown
      - plus
      - minus
    StrucvarsCsqQuery:
      type: object
      description: Query parameters of the `/api/v1/strucvars/csq` endpoint.
      required:
      - genome_release
      - chromosome
      - start
      - sv_type
      properties:
        genome_release:
          $ref: '#/components/schemas/GenomeRelease'
          description: The assembly.
        chromosome:
          type: string
          description: Chromosome.
        start:
          type: integer
          format: int32
          description: 1-based start position.
        stop:
          type:
          - integer
          - 'null'
          format: int32
          description: 1-based stop position, ignored for INS.
        sv_type:
          $ref: '#/components/schemas/StrucvarsSvType'
          description: The variant type to use for annotation.
    StrucvarsCsqResponse:
      type: object
      description: Response of the `/api/v1/strucvars/csq` endpoint.
      required:
      - version
      - query
      - result
      properties:
        version:
          $ref: '#/components/schemas/VersionsInfoResponse'
          description: Version information.
        query:
          $ref: '#/components/schemas/StrucvarsCsqQuery'
          description: The original query record.
        result:
          type: array
          items:
            $ref: '#/components/schemas/StrucvarsGeneTranscriptEffects'
          description: The resulting records for the affected genes.
    StrucvarsGeneTranscriptEffects:
      type: object
      description: Explanation of transcript effect per individual gene.
      required:
      - hgnc_id
      - transcript_effects
      properties:
        hgnc_id:
          type: string
          description: HGNC identifier
        transcript_effects:
          type: array
          items:
            $ref: '#/components/schemas/StrucvarsTranscriptEffect'
          description: Transcript effects for the gene.
    StrucvarsSvType:
      type: string
      description: Structural Variant type.
      enum:
      - DEL
      - DUP
      - INS
      - INV
      - BND
    StrucvarsTranscriptEffect:
      type: string
      description: Enumeration for effect on transcript.
      enum:
      - transcript_variant
      - exon_variant
      - splice_region_variant
      - intron_variant
      - upstream_variant
      - downstream_variant
      - intergenic_variant
    Transcript:
      type: object
      description: Transcript information.
      required:
      - id
      - gene_symbol
      - gene_id
      - biotype
      - tags
      - genome_alignments
      properties:
        id:
          type: string
          description: Transcript accession with version, e.g., `"NM_007294.3"` or `"ENST00000461574.1"` for BRCA1.
        gene_symbol:
          type: string
          description: HGNC symbol, e.g., `"BRCA1"`
        gene_id:
          type: string
          description: HGNC gene identifier, e.g., `"1100"` for BRCA1.
        biotype:
          $ref: '#/components/schemas/TranscriptBiotype'
          description: Transcript biotype.
        tags:
          type: array
          items:
            $ref: '#/components/schemas/TranscriptTag'
          description: Transcript flags.
        protein:
          type:
          - string
          - 'null'
          description: Identifier of the corresponding protein.
        start_codon:
          type:
          - integer
          - 'null'
          format: int32
          description: CDS start codon.
        stop_codon:
          type:
          - integer
          - 'null'
          format: int32
          description: CDS stop codon.
        genome_alignments:
          type: array
          items:
            $ref: '#/components/schemas/GenomeAlignment'
          description: Alignments on the different genome builds.
        filtered:
          type:
          - boolean
          - 'null'
          description: Whether this transcript has an issue (e.g. MissingStopCodon), cf. `mehari::db::create::mod::Reason`.
        filter_reason:
          type:
          - integer
          - 'null'
          format: int32
          description: Reason for filtering.
          minimum: 0
    TranscriptBiotype:
      type: string
      description: Enumeration for `Transcript::biotype`.
      enum:
      - coding
      - non_coding
    TranscriptTag:
      type: string
      enum:
      - basic
      - ensembl_canonical
      - mane_select
      - mane_plus_clinical
      - ref_seq_select
      - selenoprotein
      - gencode_primary
      - other
    VersionsInfoResponse:
      type: object
      description: Response of the `/api/v1/version` endpoint.
      required:
      - software
      - data
      properties:
        software:
          $ref: '#/components/schemas/SoftwareVersions'
          description: Software versions specification.
        data:
          type: array
          items:
            $ref: '#/components/schemas/DataVersionEntry'
          description: Data versions specification.