Debian Codegraph @

third_party/googleapis/google/genomics/v1/cigar.proto

raw
1 // Copyright 2016 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 syntax = "proto3";
16
17 package google.genomics.v1;
18
19 import "google/api/annotations.proto";
20
21 option cc_enable_arenas = true;
22 option go_package = "google.golang.org/genproto/googleapis/genomics/v1;genomics";
23 option java_multiple_files = true;
24 option java_outer_classname = "CigarProto";
25 option java_package = "com.google.genomics.v1";
26
27
28 // A single CIGAR operation.
29 message CigarUnit {
30 // Describes the different types of CIGAR alignment operations that exist.
31 // Used wherever CIGAR alignments are used.
32 enum Operation {
33 OPERATION_UNSPECIFIED = 0;
34
35 // An alignment match indicates that a sequence can be aligned to the
36 // reference without evidence of an INDEL. Unlike the
37 // `SEQUENCE_MATCH` and `SEQUENCE_MISMATCH` operators,
38 // the `ALIGNMENT_MATCH` operator does not indicate whether the
39 // reference and read sequences are an exact match. This operator is
40 // equivalent to SAM's `M`.
41 ALIGNMENT_MATCH = 1;
42
43 // The insert operator indicates that the read contains evidence of bases
44 // being inserted into the reference. This operator is equivalent to SAM's
45 // `I`.
46 INSERT = 2;
47
48 // The delete operator indicates that the read contains evidence of bases
49 // being deleted from the reference. This operator is equivalent to SAM's
50 // `D`.
51 DELETE = 3;
52
53 // The skip operator indicates that this read skips a long segment of the
54 // reference, but the bases have not been deleted. This operator is commonly
55 // used when working with RNA-seq data, where reads may skip long segments
56 // of the reference between exons. This operator is equivalent to SAM's
57 // `N`.
58 SKIP = 4;
59
60 // The soft clip operator indicates that bases at the start/end of a read
61 // have not been considered during alignment. This may occur if the majority
62 // of a read maps, except for low quality bases at the start/end of a read.
63 // This operator is equivalent to SAM's `S`. Bases that are soft
64 // clipped will still be stored in the read.
65 CLIP_SOFT = 5;
66
67 // The hard clip operator indicates that bases at the start/end of a read
68 // have been omitted from this alignment. This may occur if this linear
69 // alignment is part of a chimeric alignment, or if the read has been
70 // trimmed (for example, during error correction or to trim poly-A tails for
71 // RNA-seq). This operator is equivalent to SAM's `H`.
72 CLIP_HARD = 6;
73
74 // The pad operator indicates that there is padding in an alignment. This
75 // operator is equivalent to SAM's `P`.
76 PAD = 7;
77
78 // This operator indicates that this portion of the aligned sequence exactly
79 // matches the reference. This operator is equivalent to SAM's `=`.
80 SEQUENCE_MATCH = 8;
81
82 // This operator indicates that this portion of the aligned sequence is an
83 // alignment match to the reference, but a sequence mismatch. This can
84 // indicate a SNP or a read error. This operator is equivalent to SAM's
85 // `X`.
86 SEQUENCE_MISMATCH = 9;
87 }
88
89 Operation operation = 1;
90
91 // The number of genomic bases that the operation runs for. Required.
92 int64 operation_length = 2;
93
94 // `referenceSequence` is only used at mismatches
95 // (`SEQUENCE_MISMATCH`) and deletions (`DELETE`).
96 // Filling this field replaces SAM's MD tag. If the relevant information is
97 // not available, this field is unset.
98 string reference_sequence = 3;
99 }