Class: Google::Apis::GenomicsV1::GenomicsService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::GenomicsV1::GenomicsService
- Defined in:
- generated/google/apis/genomics_v1/service.rb
Overview
Genomics API
Upload, process, query, and search Genomics data in the cloud.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Attributes inherited from Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#batch_create_annotations(batch_create_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse
Creates one or more new annotations atomically.
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#create_annotation(annotation_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Annotation
Creates a new annotation.
-
#create_annotationset(annotation_set_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::AnnotationSet
Creates a new annotation set.
-
#create_callset(call_set_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::CallSet
Creates a new call set.
-
#create_dataset(dataset_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Dataset
Creates a new dataset.
-
#create_variant(variant_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Variant
Creates a new variant.
-
#create_variantset(variant_set_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::VariantSet
Creates a new variant set.
-
#delete_annotation(annotation_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Deletes an annotation.
-
#delete_annotationset(annotation_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Deletes an annotation set.
-
#delete_callset(call_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Deletes a call set.
-
#delete_dataset(dataset_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Deletes a dataset and all of its contents (all read group sets, reference sets, variant sets, call sets, annotation sets, etc.) This is reversible (up to one week after the deletion) via the datasets.undelete operation.
-
#delete_readgroupset(read_group_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Deletes a read group set.
-
#delete_variant(variant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Deletes a variant.
-
#delete_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Deletes a variant set including all variants, call sets, and calls within.
-
#export_readgroupset_read_group_set(read_group_set_id, export_read_group_set_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Operation
Exports a read group set to a BAM file in Google Cloud Storage.
-
#export_variantset_variant_set(variant_set_id, export_variant_set_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Operation
Exports variant set data to an external destination.
-
#get_annotation(annotation_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Annotation
Gets an annotation.
-
#get_annotationset(annotation_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::AnnotationSet
Gets an annotation set.
-
#get_callset(call_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::CallSet
Gets a call set by ID.
-
#get_dataset(dataset_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Dataset
Gets a dataset by ID.
-
#get_dataset_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Policy
Gets the access control policy for the dataset.
-
#get_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Operation
Gets the latest state of a long-running operation.
-
#get_readgroupset(read_group_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::ReadGroupSet
Gets a read group set by ID.
-
#get_reference(reference_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Reference
Gets a reference.
-
#get_referenceset(reference_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::ReferenceSet
Gets a reference set.
-
#get_variant(variant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Variant
Gets a variant by ID.
-
#get_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::VariantSet
Gets a variant set by ID.
-
#import_readgroupset_read_group_sets(import_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Operation
Creates read group sets by asynchronously importing the provided information.
-
#import_variants(import_variants_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Operation
Creates variant data by asynchronously importing the provided information.
-
#initialize ⇒ GenomicsService
constructor
A new instance of GenomicsService.
-
#list_datasets(page_token: nil, page_size: nil, project_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::ListDatasetsResponse
Lists datasets within a project.
-
#list_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_readgroupset_coveragebuckets(read_group_set_id, reference_name: nil, end_: nil, page_token: nil, page_size: nil, start: nil, target_bucket_width: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::ListCoverageBucketsResponse
Lists fixed width coverage buckets for a read group set, each of which correspond to a range of a reference sequence.
-
#list_reference_bases(reference_id, page_token: nil, page_size: nil, start: nil, end_: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::ListBasesResponse
Lists the bases in a reference, optionally restricted to a range.
-
#merge_variants(merge_variants_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Merges the given variants with existing variants.
-
#patch_callset(call_set_id, call_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::CallSet
Updates a call set.
-
#patch_dataset(dataset_id, dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Dataset
Updates a dataset.
-
#patch_readgroupset(read_group_set_id, read_group_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::ReadGroupSet
Updates a read group set.
-
#patch_variant(variant_id, variant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Variant
Updates a variant.
-
#patch_variantset(variant_set_id, variant_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::VariantSet
Updates a variant set using patch semantics.
-
#search_annotations(search_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchAnnotationsResponse
Searches for annotations that match the given criteria.
-
#search_annotationset_annotation_sets(search_annotation_sets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchAnnotationSetsResponse
Searches for annotation sets that match the given criteria.
-
#search_callset_call_sets(search_call_sets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchCallSetsResponse
Gets a list of call sets matching the criteria.
-
#search_readgroupset_read_group_sets(search_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchReadGroupSetsResponse
Searches for read group sets matching the criteria.
-
#search_reads(search_reads_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchReadsResponse
Gets a list of reads for one or more read group sets.
-
#search_references(search_references_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchReferencesResponse
Searches for references which match the given criteria.
-
#search_referenceset_reference_sets(search_reference_sets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchReferenceSetsResponse
Searches for reference sets which match the given criteria.
-
#search_variants(search_variants_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchVariantsResponse
Gets a list of variants matching the criteria.
-
#search_variantset_variant_sets(search_variant_sets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchVariantSetsResponse
Returns a list of all variant sets matching search criteria.
-
#set_dataset_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Policy
Sets the access control policy on the specified dataset.
-
#test_dataset_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#undelete_dataset(dataset_id, undelete_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Dataset
Undeletes a dataset by restoring a dataset which was deleted via this API.
-
#update_annotation(annotation_id, annotation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Annotation
Updates an annotation.
-
#update_annotationset(annotation_set_id, annotation_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::AnnotationSet
Updates an annotation set.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ GenomicsService
Returns a new instance of GenomicsService
45 46 47 48 |
# File 'generated/google/apis/genomics_v1/service.rb', line 45 def initialize super('https://genomics.googleapis.com/', '') @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
38 39 40 |
# File 'generated/google/apis/genomics_v1/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
43 44 45 |
# File 'generated/google/apis/genomics_v1/service.rb', line 43 def quota_user @quota_user end |
Instance Method Details
#batch_create_annotations(batch_create_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse
Creates one or more new annotations atomically. All annotations must belong to the same annotation set. Caller must have WRITE permission for this annotation set. For optimal performance, batch positionally adjacent annotations together. If the request has a systemic issue, such as an attempt to write to an inaccessible annotation set, the entire RPC will fail accordingly. For lesser data issues, when possible an error will be isolated to the corresponding batch entry in the response; the remaining well formed annotations will be created normally. For details on the requirements for each individual annotation resource, see CreateAnnotation.
1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1354 def batch_create_annotations(batch_create_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/annotations:batchCreate', ) command.request_representation = Google::Apis::GenomicsV1::BatchCreateAnnotationsRequest::Representation command.request_object = batch_create_annotations_request_object command.response_representation = Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse::Representation command.response_class = Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients may use Operations.GetOperation or Operations.ListOperations to check whether the cancellation succeeded or the operation completed despite cancellation.
1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1498 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', ) command.request_representation = Google::Apis::GenomicsV1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_annotation(annotation_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Annotation
Creates a new annotation. Caller must have WRITE permission for the associated annotation set. The following fields are required:
- annotationSetId
- referenceName or referenceId ### Transcripts For annotations of type TRANSCRIPT, the following fields of transcript must be provided:
- exons.start
- exons.end
All other fields may be optionally specified, unless documented as being
server-generated (for example, the
idfield). The annotated range must be no longer than 100Mbp (mega base pairs). See the Annotation resource for additional restrictions on each field.
1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1313 def create_annotation(annotation_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/annotations', ) command.request_representation = Google::Apis::GenomicsV1::Annotation::Representation command.request_object = annotation_object command.response_representation = Google::Apis::GenomicsV1::Annotation::Representation command.response_class = Google::Apis::GenomicsV1::Annotation command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_annotationset(annotation_set_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::AnnotationSet
Creates a new annotation set. Caller must have WRITE permission for the associated dataset. The following fields are required:
- datasetId
- referenceSetId
All other fields may be optionally specified, unless documented as being
server-generated (for example, the
idfield).
213 214 215 216 217 218 219 220 221 222 |
# File 'generated/google/apis/genomics_v1/service.rb', line 213 def create_annotationset(annotation_set_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/annotationsets', ) command.request_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation command.request_object = annotation_set_object command.response_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation command.response_class = Google::Apis::GenomicsV1::AnnotationSet command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_callset(call_set_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::CallSet
Creates a new call set. For the definitions of call sets and other genomics resources, see Fundamentals of Google Genomics
1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1836 def create_callset(call_set_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/callsets', ) command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation command.request_object = call_set_object command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation command.response_class = Google::Apis::GenomicsV1::CallSet command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_dataset(dataset_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Dataset
Creates a new dataset. For the definitions of datasets and other genomics resources, see Fundamentals of Google Genomics
864 865 866 867 868 869 870 871 872 873 |
# File 'generated/google/apis/genomics_v1/service.rb', line 864 def create_dataset(dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/datasets', ) command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation command.request_object = dataset_object command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation command.response_class = Google::Apis::GenomicsV1::Dataset command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_variant(variant_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Variant
Creates a new variant. For the definitions of variants and other genomics resources, see Fundamentals of Google Genomics
547 548 549 550 551 552 553 554 555 556 |
# File 'generated/google/apis/genomics_v1/service.rb', line 547 def create_variant(variant_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/variants', ) command.request_representation = Google::Apis::GenomicsV1::Variant::Representation command.request_object = variant_object command.response_representation = Google::Apis::GenomicsV1::Variant::Representation command.response_class = Google::Apis::GenomicsV1::Variant command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_variantset(variant_set_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::VariantSet
Creates a new variant set.
For the definitions of variant sets and other genomics resources, see
Fundamentals of Google
Genomics
The provided variant set must have a valid datasetId set - all other
fields are optional. Note that the id field will be ignored, as this is
assigned by the server.
1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1087 def create_variantset(variant_set_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/variantsets', ) command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation command.request_object = variant_set_object command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation command.response_class = Google::Apis::GenomicsV1::VariantSet command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_annotation(annotation_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Deletes an annotation. Caller must have WRITE permission for the associated annotation set.
1269 1270 1271 1272 1273 1274 1275 1276 1277 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1269 def delete_annotation(annotation_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/annotations/{annotationId}', ) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['annotationId'] = annotation_id unless annotation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_annotationset(annotation_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Deletes an annotation set. Caller must have WRITE permission for the associated annotation set.
71 72 73 74 75 76 77 78 79 |
# File 'generated/google/apis/genomics_v1/service.rb', line 71 def delete_annotationset(annotation_set_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/annotationsets/{annotationSetId}', ) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_callset(call_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Deletes a call set. For the definitions of call sets and other genomics resources, see Fundamentals of Google Genomics
1692 1693 1694 1695 1696 1697 1698 1699 1700 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1692 def delete_callset(call_set_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/callsets/{callSetId}', ) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['callSetId'] = call_set_id unless call_set_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_dataset(dataset_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Deletes a dataset and all of its contents (all read group sets, reference sets, variant sets, call sets, annotation sets, etc.) This is reversible (up to one week after the deletion) via the datasets.undelete operation. For the definitions of datasets and other genomics resources, see Fundamentals of Google Genomics
750 751 752 753 754 755 756 757 758 |
# File 'generated/google/apis/genomics_v1/service.rb', line 750 def delete_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/datasets/{datasetId}', ) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['datasetId'] = dataset_id unless dataset_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_readgroupset(read_group_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Deletes a read group set. For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics
2075 2076 2077 2078 2079 2080 2081 2082 2083 |
# File 'generated/google/apis/genomics_v1/service.rb', line 2075 def delete_readgroupset(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/readgroupsets/{readGroupSetId}', ) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_variant(variant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Deletes a variant. For the definitions of variants and other genomics resources, see Fundamentals of Google Genomics
360 361 362 363 364 365 366 367 368 |
# File 'generated/google/apis/genomics_v1/service.rb', line 360 def delete_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/variants/{variantId}', ) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['variantId'] = variant_id unless variant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Deletes a variant set including all variants, call sets, and calls within. This is not reversible. For the definitions of variant sets and other genomics resources, see Fundamentals of Google Genomics
1052 1053 1054 1055 1056 1057 1058 1059 1060 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1052 def delete_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/variantsets/{variantSetId}', ) command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_readgroupset_read_group_set(read_group_set_id, export_read_group_set_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Operation
Exports a read group set to a BAM file in Google Cloud Storage. For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics Note that currently there may be some differences between exported BAM files and the original BAM file at the time of import. See ImportReadGroupSets for caveats.
1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1925 def export_readgroupset_read_group_set(read_group_set_id, export_read_group_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/readgroupsets/{readGroupSetId}:export', ) command.request_representation = Google::Apis::GenomicsV1::ExportReadGroupSetRequest::Representation command.request_object = export_read_group_set_request_object command.response_representation = Google::Apis::GenomicsV1::Operation::Representation command.response_class = Google::Apis::GenomicsV1::Operation command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_variantset_variant_set(variant_set_id, export_variant_set_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Operation
Exports variant set data to an external destination. For the definitions of variant sets and other genomics resources, see Fundamentals of Google Genomics
1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1123 def export_variantset_variant_set(variant_set_id, export_variant_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/variantsets/{variantSetId}:export', ) command.request_representation = Google::Apis::GenomicsV1::ExportVariantSetRequest::Representation command.request_object = export_variant_set_request_object command.response_representation = Google::Apis::GenomicsV1::Operation::Representation command.response_class = Google::Apis::GenomicsV1::Operation command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_annotation(annotation_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Annotation
Gets an annotation. Caller must have READ permission for the associated annotation set.
1422 1423 1424 1425 1426 1427 1428 1429 1430 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1422 def get_annotation(annotation_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/annotations/{annotationId}', ) command.response_representation = Google::Apis::GenomicsV1::Annotation::Representation command.response_class = Google::Apis::GenomicsV1::Annotation command.params['annotationId'] = annotation_id unless annotation_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_annotationset(annotation_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::AnnotationSet
Gets an annotation set. Caller must have READ permission for the associated dataset.
136 137 138 139 140 141 142 143 144 |
# File 'generated/google/apis/genomics_v1/service.rb', line 136 def get_annotationset(annotation_set_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/annotationsets/{annotationSetId}', ) command.response_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation command.response_class = Google::Apis::GenomicsV1::AnnotationSet command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_callset(call_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::CallSet
Gets a call set by ID. For the definitions of call sets and other genomics resources, see Fundamentals of Google Genomics
1804 1805 1806 1807 1808 1809 1810 1811 1812 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1804 def get_callset(call_set_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/callsets/{callSetId}', ) command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation command.response_class = Google::Apis::GenomicsV1::CallSet command.params['callSetId'] = call_set_id unless call_set_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_dataset(dataset_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Dataset
Gets a dataset by ID. For the definitions of datasets and other genomics resources, see Fundamentals of Google Genomics
981 982 983 984 985 986 987 988 989 |
# File 'generated/google/apis/genomics_v1/service.rb', line 981 def get_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/datasets/{datasetId}', ) command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation command.response_class = Google::Apis::GenomicsV1::Dataset command.params['datasetId'] = dataset_id unless dataset_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_dataset_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Policy
Gets the access control policy for the dataset. This is empty if the policy or resource does not exist. See Getting a Policy for more information. For the definitions of datasets and other genomics resources, see Fundamentals of Google Genomics
903 904 905 906 907 908 909 910 911 912 913 |
# File 'generated/google/apis/genomics_v1/service.rb', line 903 def get_dataset_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', ) command.request_representation = Google::Apis::GenomicsV1::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::GenomicsV1::Policy::Representation command.response_class = Google::Apis::GenomicsV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
1587 1588 1589 1590 1591 1592 1593 1594 1595 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1587 def get_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::GenomicsV1::Operation::Representation command.response_class = Google::Apis::GenomicsV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_readgroupset(read_group_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::ReadGroupSet
Gets a read group set by ID. For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics
1996 1997 1998 1999 2000 2001 2002 2003 2004 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1996 def get_readgroupset(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}', ) command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation command.response_class = Google::Apis::GenomicsV1::ReadGroupSet command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_reference(reference_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Reference
Gets a reference. For the definitions of references and other genomics resources, see Fundamentals of Google Genomics Implements GlobalAllianceApi.getReference.
620 621 622 623 624 625 626 627 628 |
# File 'generated/google/apis/genomics_v1/service.rb', line 620 def get_reference(reference_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/references/{referenceId}', ) command.response_representation = Google::Apis::GenomicsV1::Reference::Representation command.response_class = Google::Apis::GenomicsV1::Reference command.params['referenceId'] = reference_id unless reference_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_referenceset(reference_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::ReferenceSet
Gets a reference set. For the definitions of references and other genomics resources, see Fundamentals of Google Genomics Implements GlobalAllianceApi.getReferenceSet.
1659 1660 1661 1662 1663 1664 1665 1666 1667 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1659 def get_referenceset(reference_set_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/referencesets/{referenceSetId}', ) command.response_representation = Google::Apis::GenomicsV1::ReferenceSet::Representation command.response_class = Google::Apis::GenomicsV1::ReferenceSet command.params['referenceSetId'] = reference_set_id unless reference_set_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_variant(variant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Variant
Gets a variant by ID. For the definitions of variants and other genomics resources, see Fundamentals of Google Genomics
283 284 285 286 287 288 289 290 291 |
# File 'generated/google/apis/genomics_v1/service.rb', line 283 def get_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/variants/{variantId}', ) command.response_representation = Google::Apis::GenomicsV1::Variant::Representation command.response_class = Google::Apis::GenomicsV1::Variant command.params['variantId'] = variant_id unless variant_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::VariantSet
Gets a variant set by ID. For the definitions of variant sets and other genomics resources, see Fundamentals of Google Genomics
1238 1239 1240 1241 1242 1243 1244 1245 1246 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1238 def get_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/variantsets/{variantSetId}', ) command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation command.response_class = Google::Apis::GenomicsV1::VariantSet command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#import_readgroupset_read_group_sets(import_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Operation
Creates read group sets by asynchronously importing the provided information. For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics The caller must have WRITE permissions to the dataset.
Notes on BAM import
- Tags will be converted to strings - tag types are not preserved
- Comments (
@CO) in the input file header will not be preserved - Original header order of references (
@SQ) will not be preserved - Any reverse stranded unmapped reads will be reverse complemented, and their qualities (also the "BQ" and "OQ" tags, if any) will be reversed
- Unmapped reads will be stripped of positional information (reference name and position)
2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 |
# File 'generated/google/apis/genomics_v1/service.rb', line 2117 def import_readgroupset_read_group_sets(import_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/readgroupsets:import', ) command.request_representation = Google::Apis::GenomicsV1::ImportReadGroupSetsRequest::Representation command.request_object = import_read_group_sets_request_object command.response_representation = Google::Apis::GenomicsV1::Operation::Representation command.response_class = Google::Apis::GenomicsV1::Operation command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#import_variants(import_variants_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Operation
Creates variant data by asynchronously importing the provided information. For the definitions of variant sets and other genomics resources, see Fundamentals of Google Genomics The variants for import will be merged with any existing variant that matches its reference sequence, start, end, reference bases, and alternative bases. If no such variant exists, a new one will be created. When variants are merged, the call information from the new variant is added to the existing variant, and Variant info fields are merged as specified in infoMergeConfig. As a special case, for single-sample VCF files, QUAL and FILTER fields will be moved to the call level; these are sometimes interpreted in a call-specific context. Imported VCF headers are appended to the metadata already in a variant set.
403 404 405 406 407 408 409 410 411 412 |
# File 'generated/google/apis/genomics_v1/service.rb', line 403 def import_variants(import_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/variants:import', ) command.request_representation = Google::Apis::GenomicsV1::ImportVariantsRequest::Representation command.request_object = import_variants_request_object command.response_representation = Google::Apis::GenomicsV1::Operation::Representation command.response_class = Google::Apis::GenomicsV1::Operation command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_datasets(page_token: nil, page_size: nil, project_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::ListDatasetsResponse
Lists datasets within a project. For the definitions of datasets and other genomics resources, see Fundamentals of Google Genomics
790 791 792 793 794 795 796 797 798 799 800 |
# File 'generated/google/apis/genomics_v1/service.rb', line 790 def list_datasets(page_token: nil, page_size: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/datasets', ) command.response_representation = Google::Apis::GenomicsV1::ListDatasetsResponse::Representation command.response_class = Google::Apis::GenomicsV1::ListDatasetsResponse command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::ListOperationsResponse
Lists operations that match the specified filter in the request.
1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1552 def list_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::GenomicsV1::ListOperationsResponse::Representation command.response_class = Google::Apis::GenomicsV1::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_readgroupset_coveragebuckets(read_group_set_id, reference_name: nil, end_: nil, page_token: nil, page_size: nil, start: nil, target_bucket_width: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::ListCoverageBucketsResponse
Lists fixed width coverage buckets for a read group set, each of which correspond to a range of a reference sequence. Each bucket summarizes coverage information across its corresponding genomic range. For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics Coverage is defined as the number of reads which are aligned to a given base in the reference sequence. Coverage buckets are available at several precomputed bucket widths, enabling retrieval of various coverage 'zoom levels'. The caller must have READ permissions for the target read group set.
2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 |
# File 'generated/google/apis/genomics_v1/service.rb', line 2183 def list_readgroupset_coveragebuckets(read_group_set_id, reference_name: nil, end_: nil, page_token: nil, page_size: nil, start: nil, target_bucket_width: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}/coveragebuckets', ) command.response_representation = Google::Apis::GenomicsV1::ListCoverageBucketsResponse::Representation command.response_class = Google::Apis::GenomicsV1::ListCoverageBucketsResponse command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? command.query['referenceName'] = reference_name unless reference_name.nil? command.query['end'] = end_ unless end_.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['start'] = start unless start.nil? command.query['targetBucketWidth'] = target_bucket_width unless target_bucket_width.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_reference_bases(reference_id, page_token: nil, page_size: nil, start: nil, end_: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::ListBasesResponse
Lists the bases in a reference, optionally restricted to a range. For the definitions of references and other genomics resources, see Fundamentals of Google Genomics Implements GlobalAllianceApi.getReferenceBases.
669 670 671 672 673 674 675 676 677 678 679 680 681 |
# File 'generated/google/apis/genomics_v1/service.rb', line 669 def list_reference_bases(reference_id, page_token: nil, page_size: nil, start: nil, end_: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/references/{referenceId}/bases', ) command.response_representation = Google::Apis::GenomicsV1::ListBasesResponse::Representation command.response_class = Google::Apis::GenomicsV1::ListBasesResponse command.params['referenceId'] = reference_id unless reference_id.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['start'] = start unless start.nil? command.query['end'] = end_ unless end_.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#merge_variants(merge_variants_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Empty
Merges the given variants with existing variants.
For the definitions of variants and other genomics resources, see
Fundamentals of Google
Genomics
Each variant will be
merged with an existing variant that matches its reference sequence,
start, end, reference bases, and alternative bases. If no such variant
exists, a new one will be created.
When variants are merged, the call information from the new variant
is added to the existing variant. Variant info fields are merged as
specified in the
infoMergeConfig
field of the MergeVariantsRequest.
Please exercise caution when using this method! It is easy to introduce
mistakes in existing variants and difficult to back out of them. For
example,
suppose you were trying to merge a new variant with an existing one and
both
variants contain calls that belong to callsets with the same callset ID.
// Existing variant - irrelevant fields trimmed for clarity
"variantSetId": "10473108253681171589",
"referenceName": "1",
"start": "10582",
"referenceBases": "G",
"alternateBases": [
"A"
],
"calls": [
"callSetId": "10473108253681171589-0",
"callSetName": "CALLSET0",
"genotype": [
0,
1
],
]
// New variant with conflicting call information
"variantSetId": "10473108253681171589",
"referenceName": "1",
"start": "10582",
"referenceBases": "G",
"alternateBases": [
"A"
],
"calls": [
"callSetId": "10473108253681171589-0",
"callSetName": "CALLSET0",
"genotype": [
1,
1
],
]
The resulting merged variant would overwrite the existing calls with those
from the new variant:
"variantSetId": "10473108253681171589",
"referenceName": "1",
"start": "10582",
"referenceBases": "G",
"alternateBases": [
"A"
],
"calls": [
"callSetId": "10473108253681171589-0",
"callSetName": "CALLSET0",
"genotype": [
1,
1
],
]
This may be the desired outcome, but it is up to the user to determine if
if that is indeed the case.
514 515 516 517 518 519 520 521 522 523 |
# File 'generated/google/apis/genomics_v1/service.rb', line 514 def merge_variants(merge_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/variants:merge', ) command.request_representation = Google::Apis::GenomicsV1::MergeVariantsRequest::Representation command.request_object = merge_variants_request_object command.response_representation = Google::Apis::GenomicsV1::Empty::Representation command.response_class = Google::Apis::GenomicsV1::Empty command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_callset(call_set_id, call_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::CallSet
Updates a call set. For the definitions of call sets and other genomics resources, see Fundamentals of Google Genomics This method supports patch semantics.
1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1768 def patch_callset(call_set_id, call_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/callsets/{callSetId}', ) command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation command.request_object = call_set_object command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation command.response_class = Google::Apis::GenomicsV1::CallSet command.params['callSetId'] = call_set_id unless call_set_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_dataset(dataset_id, dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Dataset
Updates a dataset. For the definitions of datasets and other genomics resources, see Fundamentals of Google Genomics This method supports patch semantics.
945 946 947 948 949 950 951 952 953 954 955 956 |
# File 'generated/google/apis/genomics_v1/service.rb', line 945 def patch_dataset(dataset_id, dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/datasets/{datasetId}', ) command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation command.request_object = dataset_object command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation command.response_class = Google::Apis::GenomicsV1::Dataset command.params['datasetId'] = dataset_id unless dataset_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_readgroupset(read_group_set_id, read_group_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::ReadGroupSet
Updates a read group set. For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics This method supports patch semantics.
2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 |
# File 'generated/google/apis/genomics_v1/service.rb', line 2038 def patch_readgroupset(read_group_set_id, read_group_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/readgroupsets/{readGroupSetId}', ) command.request_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation command.request_object = read_group_set_object command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation command.response_class = Google::Apis::GenomicsV1::ReadGroupSet command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_variant(variant_id, variant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Variant
Updates a variant. For the definitions of variants and other genomics resources, see Fundamentals of Google Genomics This method supports patch semantics. Returns the modified variant without its calls.
324 325 326 327 328 329 330 331 332 333 334 335 |
# File 'generated/google/apis/genomics_v1/service.rb', line 324 def patch_variant(variant_id, variant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/variants/{variantId}', ) command.request_representation = Google::Apis::GenomicsV1::Variant::Representation command.request_object = variant_object command.response_representation = Google::Apis::GenomicsV1::Variant::Representation command.response_class = Google::Apis::GenomicsV1::Variant command.params['variantId'] = variant_id unless variant_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_variantset(variant_set_id, variant_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::VariantSet
Updates a variant set using patch semantics. For the definitions of variant sets and other genomics resources, see Fundamentals of Google Genomics
1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1202 def patch_variantset(variant_set_id, variant_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/variantsets/{variantSetId}', ) command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation command.request_object = variant_set_object command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation command.response_class = Google::Apis::GenomicsV1::VariantSet command.params['variantSetId'] = variant_set_id unless variant_set_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#search_annotations(search_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchAnnotationsResponse
Searches for annotations that match the given criteria. Results are ordered by genomic coordinate (by reference sequence, then position). Annotations with equivalent genomic coordinates are returned in an unspecified order. This order is consistent, such that two queries for the same content (regardless of page size) yield annotations in the same order across their respective streams of paginated responses. Caller must have READ permission for the queried annotation sets.
1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1390 def search_annotations(search_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/annotations/search', ) command.request_representation = Google::Apis::GenomicsV1::SearchAnnotationsRequest::Representation command.request_object = search_annotations_request_object command.response_representation = Google::Apis::GenomicsV1::SearchAnnotationsResponse::Representation command.response_class = Google::Apis::GenomicsV1::SearchAnnotationsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#search_annotationset_annotation_sets(search_annotation_sets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchAnnotationSetsResponse
Searches for annotation sets that match the given criteria. Annotation sets are returned in an unspecified order. This order is consistent, such that two queries for the same content (regardless of page size) yield annotation sets in the same order across their respective streams of paginated responses. Caller must have READ permission for the queried datasets.
104 105 106 107 108 109 110 111 112 113 |
# File 'generated/google/apis/genomics_v1/service.rb', line 104 def search_annotationset_annotation_sets(search_annotation_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/annotationsets/search', ) command.request_representation = Google::Apis::GenomicsV1::SearchAnnotationSetsRequest::Representation command.request_object = search_annotation_sets_request_object command.response_representation = Google::Apis::GenomicsV1::SearchAnnotationSetsResponse::Representation command.response_class = Google::Apis::GenomicsV1::SearchAnnotationSetsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#search_callset_call_sets(search_call_sets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchCallSetsResponse
Gets a list of call sets matching the criteria. For the definitions of call sets and other genomics resources, see Fundamentals of Google Genomics Implements GlobalAllianceApi.searchCallSets.
1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1727 def search_callset_call_sets(search_call_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/callsets/search', ) command.request_representation = Google::Apis::GenomicsV1::SearchCallSetsRequest::Representation command.request_object = search_call_sets_request_object command.response_representation = Google::Apis::GenomicsV1::SearchCallSetsResponse::Representation command.response_class = Google::Apis::GenomicsV1::SearchCallSetsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#search_readgroupset_read_group_sets(search_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchReadGroupSetsResponse
Searches for read group sets matching the criteria. For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics Implements GlobalAllianceApi.searchReadGroupSets.
1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1962 def search_readgroupset_read_group_sets(search_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/readgroupsets/search', ) command.request_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsRequest::Representation command.request_object = search_read_group_sets_request_object command.response_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse::Representation command.response_class = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#search_reads(search_reads_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchReadsResponse
Gets a list of reads for one or more read group sets. For the definitions of read group sets and other genomics resources, see Fundamentals of Google Genomics Reads search operates over a genomic coordinate space of reference sequence & position defined over the reference sequences to which the requested read group sets are aligned. If a target positional range is specified, search returns all reads whose alignment to the reference genome overlap the range. A query which specifies only read group set IDs yields all reads in those read group sets, including unmapped reads. All reads returned (including reads on subsequent pages) are ordered by genomic coordinate (by reference sequence, then position). Reads with equivalent genomic coordinates are returned in an unspecified order. This order is consistent, such that two queries for the same content (regardless of page size) yield reads in the same order across their respective streams of paginated responses. Implements GlobalAllianceApi.searchReads.
1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1885 def search_reads(search_reads_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/reads/search', ) command.request_representation = Google::Apis::GenomicsV1::SearchReadsRequest::Representation command.request_object = search_reads_request_object command.response_representation = Google::Apis::GenomicsV1::SearchReadsResponse::Representation command.response_class = Google::Apis::GenomicsV1::SearchReadsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#search_references(search_references_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchReferencesResponse
Searches for references which match the given criteria. For the definitions of references and other genomics resources, see Fundamentals of Google Genomics Implements GlobalAllianceApi.searchReferences.
583 584 585 586 587 588 589 590 591 592 |
# File 'generated/google/apis/genomics_v1/service.rb', line 583 def search_references(search_references_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/references/search', ) command.request_representation = Google::Apis::GenomicsV1::SearchReferencesRequest::Representation command.request_object = search_references_request_object command.response_representation = Google::Apis::GenomicsV1::SearchReferencesResponse::Representation command.response_class = Google::Apis::GenomicsV1::SearchReferencesResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#search_referenceset_reference_sets(search_reference_sets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchReferenceSetsResponse
Searches for reference sets which match the given criteria. For the definitions of references and other genomics resources, see Fundamentals of Google Genomics Implements GlobalAllianceApi.searchReferenceSets
1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1622 def search_referenceset_reference_sets(search_reference_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/referencesets/search', ) command.request_representation = Google::Apis::GenomicsV1::SearchReferenceSetsRequest::Representation command.request_object = search_reference_sets_request_object command.response_representation = Google::Apis::GenomicsV1::SearchReferenceSetsResponse::Representation command.response_class = Google::Apis::GenomicsV1::SearchReferenceSetsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#search_variants(search_variants_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchVariantsResponse
Gets a list of variants matching the criteria. For the definitions of variants and other genomics resources, see Fundamentals of Google Genomics Implements GlobalAllianceApi.searchVariants.
249 250 251 252 253 254 255 256 257 258 |
# File 'generated/google/apis/genomics_v1/service.rb', line 249 def search_variants(search_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/variants/search', ) command.request_representation = Google::Apis::GenomicsV1::SearchVariantsRequest::Representation command.request_object = search_variants_request_object command.response_representation = Google::Apis::GenomicsV1::SearchVariantsResponse::Representation command.response_class = Google::Apis::GenomicsV1::SearchVariantsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#search_variantset_variant_sets(search_variant_sets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::SearchVariantSetsResponse
Returns a list of all variant sets matching search criteria. For the definitions of variant sets and other genomics resources, see Fundamentals of Google Genomics Implements GlobalAllianceApi.searchVariantSets.
1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1160 def search_variantset_variant_sets(search_variant_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/variantsets/search', ) command.request_representation = Google::Apis::GenomicsV1::SearchVariantSetsRequest::Representation command.request_object = search_variant_sets_request_object command.response_representation = Google::Apis::GenomicsV1::SearchVariantSetsResponse::Representation command.response_class = Google::Apis::GenomicsV1::SearchVariantSetsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_dataset_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Policy
Sets the access control policy on the specified dataset. Replaces any existing policy. For the definitions of datasets and other genomics resources, see Fundamentals of Google Genomics See Setting a Policy for more information.
830 831 832 833 834 835 836 837 838 839 840 |
# File 'generated/google/apis/genomics_v1/service.rb', line 830 def set_dataset_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::GenomicsV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::GenomicsV1::Policy::Representation command.response_class = Google::Apis::GenomicsV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_dataset_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. See Testing Permissions for more information. For the definitions of datasets and other genomics resources, see Fundamentals of Google Genomics
710 711 712 713 714 715 716 717 718 719 720 |
# File 'generated/google/apis/genomics_v1/service.rb', line 710 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::GenomicsV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::GenomicsV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::GenomicsV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#undelete_dataset(dataset_id, undelete_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Dataset
Undeletes a dataset by restoring a dataset which was deleted via this API. For the definitions of datasets and other genomics resources, see Fundamentals of Google Genomics This operation is only possible for a week after the deletion occurred.
1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1016 def undelete_dataset(dataset_id, undelete_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/datasets/{datasetId}:undelete', ) command.request_representation = Google::Apis::GenomicsV1::UndeleteDatasetRequest::Representation command.request_object = undelete_dataset_request_object command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation command.response_class = Google::Apis::GenomicsV1::Dataset command.params['datasetId'] = dataset_id unless dataset_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_annotation(annotation_id, annotation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::Annotation
Updates an annotation. Caller must have WRITE permission for the associated dataset.
1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 |
# File 'generated/google/apis/genomics_v1/service.rb', line 1461 def update_annotation(annotation_id, annotation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1/annotations/{annotationId}', ) command.request_representation = Google::Apis::GenomicsV1::Annotation::Representation command.request_object = annotation_object command.response_representation = Google::Apis::GenomicsV1::Annotation::Representation command.response_class = Google::Apis::GenomicsV1::Annotation command.params['annotationId'] = annotation_id unless annotation_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_annotationset(annotation_set_id, annotation_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GenomicsV1::AnnotationSet
Updates an annotation set. The update must respect all mutability restrictions and other invariants described on the annotation set resource. Caller must have WRITE permission for the associated dataset.
175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'generated/google/apis/genomics_v1/service.rb', line 175 def update_annotationset(annotation_set_id, annotation_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1/annotationsets/{annotationSetId}', ) command.request_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation command.request_object = annotation_set_object command.response_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation command.response_class = Google::Apis::GenomicsV1::AnnotationSet command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |