readgroup.proto 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. syntax = "proto3";
  15. package google.genomics.v1;
  16. import "google/api/annotations.proto";
  17. import "google/protobuf/struct.proto";
  18. option cc_enable_arenas = true;
  19. option java_multiple_files = true;
  20. option java_outer_classname = "ReadGroupProto";
  21. option java_package = "com.google.genomics.v1";
  22. // A read group is all the data that's processed the same way by the sequencer.
  23. message ReadGroup {
  24. message Experiment {
  25. // A client-supplied library identifier; a library is a collection of DNA
  26. // fragments which have been prepared for sequencing from a sample. This
  27. // field is important for quality control as error or bias can be introduced
  28. // during sample preparation.
  29. string library_id = 1;
  30. // The platform unit used as part of this experiment, for example
  31. // flowcell-barcode.lane for Illumina or slide for SOLiD. Corresponds to the
  32. // @RG PU field in the SAM spec.
  33. string platform_unit = 2;
  34. // The sequencing center used as part of this experiment.
  35. string sequencing_center = 3;
  36. // The instrument model used as part of this experiment. This maps to
  37. // sequencing technology in the SAM spec.
  38. string instrument_model = 4;
  39. }
  40. message Program {
  41. // The command line used to run this program.
  42. string command_line = 1;
  43. // The user specified locally unique ID of the program. Used along with
  44. // `prevProgramId` to define an ordering between programs.
  45. string id = 2;
  46. // The display name of the program. This is typically the colloquial name of
  47. // the tool used, for example 'bwa' or 'picard'.
  48. string name = 3;
  49. // The ID of the program run before this one.
  50. string prev_program_id = 4;
  51. // The version of the program run.
  52. string version = 5;
  53. }
  54. // The server-generated read group ID, unique for all read groups.
  55. // Note: This is different than the @RG ID field in the SAM spec. For that
  56. // value, see [name][google.genomics.v1.ReadGroup.name].
  57. string id = 1;
  58. // The dataset to which this read group belongs.
  59. string dataset_id = 2;
  60. // The read group name. This corresponds to the @RG ID field in the SAM spec.
  61. string name = 3;
  62. // A free-form text description of this read group.
  63. string description = 4;
  64. // A client-supplied sample identifier for the reads in this read group.
  65. string sample_id = 5;
  66. // The experiment used to generate this read group.
  67. Experiment experiment = 6;
  68. // The predicted insert size of this read group. The insert size is the length
  69. // the sequenced DNA fragment from end-to-end, not including the adapters.
  70. int32 predicted_insert_size = 7;
  71. // The programs used to generate this read group. Programs are always
  72. // identical for all read groups within a read group set. For this reason,
  73. // only the first read group in a returned set will have this field
  74. // populated.
  75. repeated Program programs = 10;
  76. // The reference set the reads in this read group are aligned to.
  77. string reference_set_id = 11;
  78. // A map of additional read group information. This must be of the form
  79. // map<string, string[]> (string key mapping to a list of string values).
  80. map<string, google.protobuf.ListValue> info = 12;
  81. }