| 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 = "PositionProto"; |
| 25 |
option java_package = "com.google.genomics.v1"; |
| 26 |
|
| 27 |
|
| 28 |
// An abstraction for referring to a genomic position, in relation to some |
| 29 |
// already known reference. For now, represents a genomic position as a |
| 30 |
// reference name, a base number on that reference (0-based), and a |
| 31 |
// determination of forward or reverse strand. |
| 32 |
message Position { |
| 33 |
// The name of the reference in whatever reference set is being used. |
| 34 |
string reference_name = 1; |
| 35 |
|
| 36 |
// The 0-based offset from the start of the forward strand for that reference. |
| 37 |
int64 position = 2; |
| 38 |
|
| 39 |
// Whether this position is on the reverse strand, as opposed to the forward |
| 40 |
// strand. |
| 41 |
bool reverse_strand = 3; |
| 42 |
} |