Skip to content

Commit dfcae01

Browse files
committed
Updated Genomics.php
This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info.
1 parent 31e9f24 commit dfcae01

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

src/Google/Service/Genomics.php

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,9 +1125,14 @@ public function get($variantId, $optParams = array())
11251125
return $this->call('get', array($params), "Google_Service_Genomics_Variant");
11261126
}
11271127
/**
1128-
* Creates variant data by asynchronously importing the provided information. If
1129-
* the destination variant set already contains data, new variants will be
1130-
* merged according to the behavior of mergeVariants. (variants.import)
1128+
* Creates variant data by asynchronously importing the provided information.
1129+
* The variants for import will be merged with any existing data and each other
1130+
* according to the behavior of mergeVariants. In particular, this means for
1131+
* merged VCF variants that have conflicting INFO fields, some data will be
1132+
* arbitrarily discarded. As a special case, for single-sample VCF files, QUAL
1133+
* and FILTER fields will be moved to the call level; these are sometimes
1134+
* interpreted in a call-specific context. Imported VCF headers are appended to
1135+
* the metadata already in a VariantSet. (variants.import)
11311136
*
11321137
* @param Google_ImportVariantsRequest $postBody
11331138
* @param array $optParams Optional parameters.
@@ -1222,10 +1227,10 @@ public function get($variantSetId, $optParams = array())
12221227
*
12231228
* @param string $variantSetId
12241229
* The destination variant set.
1225-
* @param Google_Variant $postBody
1230+
* @param Google_MergeVariantsRequest $postBody
12261231
* @param array $optParams Optional parameters.
12271232
*/
1228-
public function mergeVariants($variantSetId, Google_Service_Genomics_Variant $postBody, $optParams = array())
1233+
public function mergeVariants($variantSetId, Google_Service_Genomics_MergeVariantsRequest $postBody, $optParams = array())
12291234
{
12301235
$params = array('variantSetId' => $variantSetId, 'postBody' => $postBody);
12311236
$params = array_merge($params, $optParams);
@@ -2283,6 +2288,25 @@ public function getNextPageToken()
22832288
}
22842289
}
22852290

2291+
class Google_Service_Genomics_MergeVariantsRequest extends Google_Collection
2292+
{
2293+
protected $collection_key = 'variants';
2294+
protected $internal_gapi_mappings = array(
2295+
);
2296+
protected $variantsType = 'Google_Service_Genomics_Variant';
2297+
protected $variantsDataType = 'array';
2298+
2299+
public function setVariants($variants)
2300+
{
2301+
$this->variants = $variants;
2302+
}
2303+
2304+
public function getVariants()
2305+
{
2306+
return $this->variants;
2307+
}
2308+
}
2309+
22862310
class Google_Service_Genomics_Metadata extends Google_Model
22872311
{
22882312
protected $internal_gapi_mappings = array(

0 commit comments

Comments
 (0)